Cc: Greg KH <gregkh@...>, H. Peter Anvin <hpa@...>, Jens Axboe <axboe@...>, Jeff Garzik <jgarzik@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Linux Kernel <linux-kernel@...>, IDE/ATA development list <linux-ide@...>, linux-scsi <linux-scsi@...>
The questions are...
1. Are we gonna push sysfs as the primary interface and not provide an
alternative interface (ioctl here) which can provide equivalent
information? There are people running their systems w/o sysfs but I
think we're getting closer to this everyday.
2. Is udev an essential part of all systems? I'm not sure about this
one. Lots of small machines run w/o udev and I think udev is a bit too
high level to depend on for every system.
If both #1 and #2 are true, I agree with Mark that we need an easy to
map from device number to matching sysfs nodes. Tools which are used
early during boot and emergency sessions need this mapping and many of
them are minimal C program w/o much dependency for a good reason.
Requiring each of them to implement their own way to map device node to
sysfs node is too awkward.
Probably something like /sys/class/block/MAJ:MIN or
/sys/class/devnums/bMAJ:MIN?
--
tejun
--