Re: removable media revalidation - udev vs. devfs or static /dev

From: Greg KH
Date: Wed Jan 07 2004 - 19:42:58 EST


On Wed, Jan 07, 2004 at 04:32:26PM -0800, Martin J. Bligh wrote:
> >> NOTE! We do have an alternative: if we were to just make block device
> >> nodes support "readdir" and "lookup", you could just do
> >>
> >> open("/dev/sda/1" ...)
> >>
> >> and it magically works right. I've wanted to do this for a long time, but
> >> every time I suggest allowing it, people scream.
> >
> > Hm, that would be nice. I don't remember seeing it being proposed
> > before, what are the main complaints people have with this?
>
> Couldn't the partitions go under "/dev/sdaX/{1,2,3}" and solve the same
> problem without doing magic on the devices?

No, that's not the point. As discussed on irc, I think you now
understand the issue (partitions not being present, media changed
without kernel knowing about it, etc.)

thanks,

greg k-h
-
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/