2.5.59-mm9
Quoted 7 lines · Georgi Chorbadzhiyski
Quoted 6 lines · Jochen Hein
Quoted 4 lines · Andrew Morton
. Adam's cleanup and cutdown of devfs has been put back in again. We
really need devfs users to test this and to report, please. (And not just to me! I'll only bounce it to Adam J. Richter <[email protected]> anyway)
Quoted 5 lines
Quoted 3 lines
Ok, I patched 2.5.59 with Adam's patch and it boots fine. I miss the file
/dev/.devfsd- Debian uses that file to detect devfs and act accordingly. Still in the first minutes, I'll get back when Linus hasSlackware does the same.
Distributions that want to do something different for devfs
can parse /proc/mounts, or, less reliably, do statfs("/dev", &statfs_buf) and look at statfs_buf.f_type. So, you still have this ability without the need for additional kernel code.
It's worth noting that some devfs users may want the non-devfs
behavior (which I assume means creating /dev files during some installation process) because they may have a script to save /dev before shutdown and restore their additional /dev nodes at boot, so you probably want to centralize this decision in some little script anyhow. The devfsd (for the stock devfs) has a couple of commands designed for this, although this can just as easily be done in scripts for boot and shutdowns.
Also, I suppose that checking for /dev/.devfsd is an easy way
to detect _which_ devfs you are using, although I don't know if such a check is useful, since you could start devfsd unconditionally and it should just exit if the old devfs is not present.
Adam J. Richter __ ______________ 575 Oroville Road [email protected] \ / Milpitas, California 95035 +1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."