lkml.org 
[lkml]   [2008]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: What to do about the 2TB limit on HDIO_GETGEO ?
From
Date
On Thu, 2008-03-27 at 11:55 -0700, H. Peter Anvin wrote:
> Kay Sievers wrote:
> >>
> >> 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.
> >
> > Hmm, 100 lines? What else do you need?
> >
> > $ grep -l 8:3 /sys/class/block/*/dev
> > /sys/class/block/sdc/dev
> >
>
> That's particularly funny, because your very own example gives the wrong
> result -- sdc is 8:32 not 8:3 (which is sdc3, which is also excluded by
> your search.)

Very true, but I guess you get the idea, and know how to add the proper
string match to grep. :)

> Not to mention the fact that it is still O(n).

Any real numbers from a large setup, which show that we want to have a
reverse devnum map in sysfs?

Thanks,
Kay



\
 
 \ /
  Last update: 2008-03-27 20:07    [W:0.106 / U:2.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site