login
Header Space

 
 

Re: What to do about the 2TB limit on HDIO_GETGEO ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <gregkh@...>
Cc: H. Peter Anvin <hpa@...>, Jens Axboe <axboe@...>, Jeff Garzik <jgarzik@...>, Tejun Heo <htejun@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Linux Kernel <linux-kernel@...>, IDE/ATA development list <linux-ide@...>, linux-scsi <linux-scsi@...>
Date: Tuesday, March 25, 2008 - 8:34 pm

Greg KH wrote:
..

So have we.  sysfs is a total nightmare to extract information from
under program / script control.  The idea presented in this thread,
is to have it cross-index the contents with a method that actually
makes it easy to access in many common scenarios, without requiring
huge gobs of code in user space.  Or in kernel space.

And it's not just a few 10s of lines of code currently,
but rather about 80-100 lines just to find the correct device subdir,
and *then* a few more 10s of lines of code to retrieve the value.

In a bulletproof fashion, that is.  Sure it can be slightly smaller
if niceties such as error checking/handling are omitted.

There's no guarantee that udev is present, and even if it were present,
there's no guarantee that the names in /dev/ will match /sysfs/ pathnames,
since udev is very configurable to do otherwise.

So lookups are by dev_t, which sysfs has no simple or even easy way
of accomplishing.  O(n) at a minimum.

If we make it easier to access, then more programs will use it
rather than us having to expand our tricky binary ioctl interfaces.

Isn't that part of the idea of sysfs -- to limit the need for new ioctls ?

Cheers
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What to do about the 2TB limit on HDIO_GETGEO ?, Mark Lord, (Tue Mar 25, 12:02 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, James Bottomley, (Tue Mar 25, 11:17 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Greg Freemyer, (Tue Mar 25, 1:45 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Matt Domsch, (Sun Mar 30, 12:28 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Randy Dunlap, (Tue Mar 25, 1:52 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Matthew Wilcox, (Tue Mar 25, 2:09 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Boaz Harrosh, (Wed Mar 26, 5:58 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Mark Lord, (Tue Mar 25, 1:31 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, James Bottomley, (Tue Mar 25, 3:32 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Tue Mar 25, 1:13 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Mark Lord, (Tue Mar 25, 9:37 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Tue Mar 25, 9:55 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Mark Lord, (Tue Mar 25, 1:37 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Mark Lord, (Tue Mar 25, 8:34 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Kay Sievers, (Thu Mar 27, 2:51 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Thu Mar 27, 2:55 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Kay Sievers, (Thu Mar 27, 3:03 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Tejun Heo, (Tue Mar 25, 8:54 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Kay Sievers, (Thu Mar 27, 3:29 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Thu Mar 27, 3:38 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Dan Williams, (Fri Apr 11, 7:25 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Andrew Morton, (Tue Apr 15, 3:18 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, James Bottomley, (Tue Apr 15, 10:20 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Tue Apr 15, 2:16 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Dan Williams, (Tue Apr 15, 7:43 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Mark Lord, (Tue Apr 15, 9:47 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Tejun Heo, (Wed Mar 26, 12:24 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Wed Mar 26, 2:04 am)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Randy Dunlap, (Tue Mar 25, 3:34 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Tue Mar 25, 4:36 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Tue Mar 25, 5:26 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Matthew Wilcox, (Thu Mar 27, 3:05 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, H. Peter Anvin, (Tue Mar 25, 7:05 pm)
Re: What to do about the 2TB limit on HDIO_GETGEO ?, Andrew Morton, (Tue Mar 25, 12:19 am)
speck-geostationary