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

Richard Troth
2004-01-07T20:26:13Z

> > 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.

Nooo!!! Resist the temptation!! Don't give in!

> Hm, that would be nice. I don't remember seeing it being proposed
> before, what are the main complaints people have with this?

Consider the long-range ramifications
if a device can also be a directory, just "magically".
I'm not going to automatically diss the idea (other than my
natural reaction above) but please consider beyond the immediate hack.

It reminds me of AIX from the days when it ran on PCs.
They had this neat trick of "hidden directories" (for a different
purpose). It looked like an executable, but really was a
directory containing multiple executables for various platforms.
(This version of AIX also ran on the mainframe, AIX/386 and AIX/370.)
There were/are better ways of solving the problem they were addressing.

-- R;