lkml.org 
[lkml]   [2008]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What to do about the 2TB limit on HDIO_GETGEO ?
Kay Sievers wrote:
>>
>> Probably something like /sys/class/block/MAJ:MIN
>
> "Devices directories" are not supposed to contain duplicate entries.
> It would slow-down, or may even break things.
>
>> or /sys/class/devnums/bMAJ:MIN?
>
> These are no devices belonging to the class "devnums", so it may
> confuse things which crawl these directories to get "all devices".
> Current coldplug-like setups will likely add duplicate devices with
> the wrong subsystem. There are also bus-devices with have a dev_t, and
> that will make them show up in /sys/class, which might confuse some
> tools too.
>
> I guess we will need to find some other solution as a /sys/class/ for
> that. And we must prefix the links with 'c' and 'b' because dev_t is
> not unique across char and block devices.
>

It doesn't really seem to be to belong under class at all. I would
suggest /sys/dev/char/ and /sys/dev/block/, for char and block respectively.

-hpa



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