LWN: Comments on "What's to become of devfs?" https://lwn.net/Articles/15425/ This is a special feed containing comments posted to the individual LWN article titled "What's to become of devfs?". en-us Tue, 16 Sep 2025 19:23:49 +0000 Tue, 16 Sep 2025 19:23:49 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net debian only has kernel 2.2.x ?? https://lwn.net/Articles/16406/ https://lwn.net/Articles/16406/ elanthis Yes, but they can't enable devfs by default, they have to use plain /dev. If all they shipped with 2.4, or at least if they shipped 2.4 as the default with no 2.2 install option, they could enable devfs by default. Mon, 25 Nov 2002 03:34:02 +0000 What's to become of devfs? https://lwn.net/Articles/16291/ https://lwn.net/Articles/16291/ yem I recently switched to gentoo. As you say, the &quot;standard config&quot; specifies a devfs setup and all of the documentation assumes that you are using it.<p>Personally, I've had trouble with devfs in the past and I'm using gentoo without it. Creating the devices I need by hand was tedious..<p>I like the idea of having devfs with a fall through to traditional device files. Fri, 22 Nov 2002 02:17:42 +0000 What's to become of devfs? https://lwn.net/Articles/16238/ https://lwn.net/Articles/16238/ MLKahnt I roll my own kernels on Debian, and started building devfs with kernel 2.4.5, although it wasn't until 2.4.9 that I got those kernels to successfully boot - I didn't read closely enough that I'd also need devfsd (oops!) Since then, I've used it and found it wonderful as I tried to get a couple ornery extensions working (tv tuner, usb camera, usb printer) - if I couldn't find the device, obviously something wasn't *quite* right. Traditional /dev wouldn't have given me that opportunity, and I find that I can check it with fewer keystrokes than I can /proc. This *trimmed down* /dev actually means that you can find things - and on a large xterm, can see all of /dev itself on the screen at once. The replacement suggested might handle this just as well or better, but simply put, it is a fine part of the system and a great benefit from my experience, and I suspect that it is more useful for most users than the kernel http server. Thu, 21 Nov 2002 17:52:57 +0000 What's to become of devfs? https://lwn.net/Articles/16219/ https://lwn.net/Articles/16219/ Baylink &quot;Al's chainsaw&quot;.<p>Heh. :-) Thu, 21 Nov 2002 16:10:19 +0000 Keep devfs! https://lwn.net/Articles/16177/ https://lwn.net/Articles/16177/ job Noooooo! devfs is a saviour. People that use the backwards-compatible naming are really missing the best. Two examples: 1. Better organization. /dev/sound/dsp is better than /dev/dsp. 2. The IDE and SCSI naming are named after their actual address! Just like on Solaris. This means I can put new disks in the system without renaming the existing ones. This feature is worth a lot! I've used it exclusively since it was only a little patch. Thu, 21 Nov 2002 12:07:38 +0000 What's to become of devfs? https://lwn.net/Articles/16176/ https://lwn.net/Articles/16176/ TheOneKEA I like devfs. It's a much cleaner way to talk to the devices. The namespace itself is a small problem, since I think it's too deep, but otherwise it'svery useful.<p>I hope devfs doesn't goaway entirely, but that its functionality gets merged with something else in the kernel (hotplug, driverfs, procfs, etc). I don't want to use static device nodes anymore. Thu, 21 Nov 2002 11:47:06 +0000 What's to become of devfs? https://lwn.net/Articles/16156/ https://lwn.net/Articles/16156/ darthmdh Pretty much everyone I know, myself included, use devfs exclusively (and have for years). It is very well documented both kernel and userspace sides and very easy to configure (if your distribution doesn't do it by default).<br>The argument that many distributions don't enable it by default - hence it is okay to remove it from the kernel - is very short-sighted, most I know of do (particularly on boot floppies where you don't have the space to waste with a traditional /dev). In any case, whether a distribution uses it or not by default is irrelevent, I don't know anyone who ever runs a stock distribution kernel.<br>Should there be a better way to do dynamic device management, bring it on. devfs has been the only option for years, hence why so many people use it and love it.<br> Thu, 21 Nov 2002 06:40:45 +0000 Ummm... devfs? https://lwn.net/Articles/15823/ https://lwn.net/Articles/15823/ dododge <p> Look for just "devfs" with Google. The first item in the list is the FAQ from the devfs maintainer. </p> <p> In brief: the "/dev" directory contains device files. Traditionally this is just a normal directory, and is preloaded with files for every device you might ever have connected. For example there might be a whole bunch of device files related to SCSI tape drives even though you have never had a tape drive (or SCSI bus, for that matter) attached to the machine. </p> <p> devfs replaces this static directory with one generated by the kernel at runtime. Device files are created and removed on the fly when the associated driver is loaded and unloaded. Under devfs, you can get a quick view of attached devices and loaded drivers by simply looking at the contents of /dev. </p> <p> devfs does shuffle some things around, though. The traditional /dev structure is almost entirely flat, while devfs makes extensive use of subdirectories (and in some cases quite deep subdirectories). Applications looking for certain device files might have to know about both the traditional and devfs locations for those files. Since not all applications actually do this, there's "devfsd", which is a daemon that can perform actions on device files. Probably the most common use for devfsd is to have it create symlinks from the "traditional" device locations to the equivalent "devfs" locations when the device comes up. </p> Mon, 18 Nov 2002 22:29:48 +0000 Ummm... devfs? https://lwn.net/Articles/15722/ https://lwn.net/Articles/15722/ JLCdjinn <p>I <em>almost</em> got Gentoo installed on my shiny new Inspiron a couple weeks back (the only reason I failed was user error), and I plan to give it another go when I get a touch of spare time (given how much of it Gentoo takes to install) - I have the partition ready and waiting. One of the first weird things I noticed was this thing called devfs, which I hadn't heard mention of before. And here it pops up again, and people are now considering taking it out of the kernel.</p> <p>Well, I'd like to ask what it is. I couldn't find documention on it at <a href="http://www.tldp.org">The Linux Documentation Project</a>, and a search for 'devfs documentation' on <a href="http://www.google.com/search?q=devfs+documentation&sourceid=opera&num=0&ie=utf-8&oe=utf-8">Google</a> returned only mailing lists and changelogs. What gives? What is devfs? What problem was devfs designed to solve, and what's wrong with devfs as a solution? Where can I find documentation about how to utilize devfs? I have to agree with AnswerGuy that /dev/ide/host0/bus0/target0/lun0/disc is rediculous. I was... intrigued the first time I saw that.</p> <p>More information would be greatly appreciated, although as always I'm grateful to LWN for a good piece of news.</p> Sun, 17 Nov 2002 04:51:32 +0000 debian only has kernel 2.2.x ?? https://lwn.net/Articles/15713/ https://lwn.net/Articles/15713/ ernest Hu ? I use Debian, it has all the kernels you wish.<p>You don't need to stick with the one that is installed first, Debian provides packages with the latest and greatest kernels. Including many packages that provided exotic patches not in the mainstream kernel.<p>and I'm talking stable, not necessarely unstable or testing. Sat, 16 Nov 2002 13:17:16 +0000 What's to become of devfs? https://lwn.net/Articles/15613/ https://lwn.net/Articles/15613/ melauer Also, note that Debian is still on kernel 2.2, which means that devfs isn't even an option for that distro. Fri, 15 Nov 2002 03:04:19 +0000 I have it switched on https://lwn.net/Articles/15595/ https://lwn.net/Articles/15595/ ernest <br>devfs is beter.<p>I have to admit though, even after all this time, it still feels unconfortable to use.<p>too many cludges to keep the privilege info uptodate.<br>too many name changes.<p>I still have trouble find devices which had an obvious location before.<p>don't misunderstand me. something like devfs is the way to go. but we're still not there.<p><br> Thu, 14 Nov 2002 20:30:41 +0000 What's to become of devfs? https://lwn.net/Articles/15566/ https://lwn.net/Articles/15566/ a9db0 Gentoo ships with devfs enabled, and in fact won't run without it in its standard config.<p>Gentoo may be considered a &quot;minor&quot; distribution, but its popularity is growing rapidly. Just browse through the comments in the current poll on slashdot.<p> Thu, 14 Nov 2002 16:00:43 +0000 What's to become of devfs? https://lwn.net/Articles/15554/ https://lwn.net/Articles/15554/ brugolsky I think you missed the real point of Al Viro's work, which is that the cleanups that he is proposing would remove cruft from the drivers. In that sense, it is a worthwhile cleanup, even if devfs is not turned on by many of users, because it will make life easier on driver writers and maintainers. (Given, as you say, that devfs will live on for at least another stable iteration.)<p>Of course, Ted has a point; there are other things that might profit more from Al's chainsaw.<br> Thu, 14 Nov 2002 13:46:11 +0000 What's to become of devfs? https://lwn.net/Articles/15535/ https://lwn.net/Articles/15535/ csawtell Gentoo uses it, so I use it. It works well. Please don't take it away. Thu, 14 Nov 2002 11:44:33 +0000 What's to become of devfs? https://lwn.net/Articles/15520/ https://lwn.net/Articles/15520/ eru &gt; Despite the fact that devfs has been in the 2.4 kernel since it first<br>&gt; shipped, very few distributions are turning it on for their customers.<p>Mandrake Linux, a very popular distro, has had devfs activated<br>by default at least since version 8.2 (possibly earlier, but of<br>8.2 I'm quite sure since I use it). Thus this feature has a<br>non-trivial number of customers, even if it is not enabled in<br>most distros.<br> Thu, 14 Nov 2002 07:59:21 +0000 What's to become of devfs? https://lwn.net/Articles/15516/ https://lwn.net/Articles/15516/ AnswerGuy The problem with devfs is that it hasn't got the support of the rest <br>of the system. We need something like a translucent (overlay) filesystem<br>so that devfs can be mounted over /dev --- so the dynamic entries can <br>be used, and the system will fall through to the static device nodes<br>thereunder. (And some provision as to be made so that the permissions<br>ownership and now any ACLs or EAs (extended attributes) can be made to<br>to &quot;show through.&quot;<p>I think these system changes (planned for 2.8 now anyway) will do away<br>with devfsd --- which seems like a kludge like kerneld did.<p>devfs is a good idea. However, it's a BIG change and will have to be <br>adopted slowly, probably will need more support (such as this unionfs<br>feature) and the implementation probably does need to be cleaned up.<p>I think combining devfs's dynamic model with the massive naming and <br>organizational chanages (/dev/hda becomes /dev/discs/disc0/disc *and*<br>/dev/ide/host0/bus0/target0/lun0/disc) was a bad idea. It increases the<br>risk and aversion to adopting the new code as a standard.<p>We are seeking the &quot;backwards&quot; part of &quot;backwards compatibility here. Thu, 14 Nov 2002 06:18:35 +0000