Re: removable media revalidation - udev vs. devfs or static /dev
From: Joel Becker
Date: Mon Jan 12 2004 - 12:19:02 EST
On Fri, Jan 09, 2004 at 10:49:03AM +0100, Gerd Knorr wrote:
> I also think you don't need *all* minors for removable media. I
> havn't seen removable media with extended partitions so far. IIRC zip
> floppys are using /dev/sda4 and most other ones either /dev/sda1 or
> /dev/sda directly, so we likely can catch 99% with just three device
> nodes.
Ahh, but that's magic, and we don't want magic. Today, you just
'magically' know that your camera card reader shows up at sda1. We
don't want that (or at least, I hope we don't). We want sysfs to
describe exactly what appeared (a block device with one partition), and
we want udev to give it the name our policy has asked it to (/dev/disk1
or /dev/camera1 or /dev/partition1 or whatever that policy is). In a
udev world, I don't want to have to intrinsicly know that sda1 is where
some card reader devices appear. Naming should be a priori, not random.
Joel
--
"Glory is fleeting, but obscurity is forever."
- Napoleon Bonaparte
Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@xxxxxxxxxx
Phone: (650) 506-8127
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/