LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   To devfs, or not devfs - advice please (https://www.linuxquestions.org/questions/linux-general-1/to-devfs-or-not-devfs-advice-please-81262/)

JamesM 08-12-2003 08:50 AM

To devfs, or not devfs - advice please
 
I'd be really grateful for enlightenment on the pros and cons of compiling devfs support into the kernel. I have a one box slackware 9.0 set up with no more than the average number of devices. Being something of a control-freak I'd quite like to be responsible my own /dev directory rather than having it done by a process. Or am I missing the point?

cheers,

James

acid_kewpie 08-12-2003 09:12 AM

well you do have the same level of control really, youjust go at it from a different angle.... your changes and symlinks are done as entries in /etc/devfsd.conf which you are free to personalise as you wish.

obviously it does add an extra layer of complexity to rely upon , but it is reliable and stable i've found, so i wouldn't worry about that really.

and of course it's an awful lot cleaner, a flat structure typically tries to include all known devices, which is a pretty horrendous place to be... it's nice to only have /dev/hdXY entries for partitions that actually exist...

JamesM 08-12-2003 09:23 AM

OK, makes sense.

cheers

slakmagik 08-12-2003 04:19 PM

I'm really interested in this myself - the /dev directory drives me almost as nuts as SysV /etc/rc.whoozits. But I'm really not knowledgeable about the subject. One thing I worry about is that if I add new hardware or, say cdrecord wants to pretend I have a /dev/sr0, that's simplified by the complicated /dev directory because those nodes already exist, or not? I mean, with devfs, I'd have to know what devices to add to /etc/devfsd.conf or my devices wouldn't work?

I read some devfs docs in the kernel source docs when I was compiling a kernel but I didn't really get it. So I've always played it safe and stuck with what I (sort of barely) knew rather than experimenting with what I suspect I'd prefer.

bulliver 08-13-2003 05:38 AM

My distro uses devfs by default, so I just got used to it. It isn't really that more difficult to maintain, but I would imagine setting it up on an existing install would be more of a challenge. You would need to:
1. add support for devfs in kernel
2. install devfsd and set it up to run as a daemon
3. rewrite fstab with the new naming conventions
4. have yet another /etc/*.conf file to maintain, this one with especially cryptic syntax

To tell the truth I have noticed neither advantages nor disadvantages, so I would say stick to the status quo unless you have a real itch to try it.

My $0.02

JamesM 08-13-2003 05:48 AM

thanks for the input everybody. I think I must have accidently compiled devfs into my kernel!? but am going to leave it in now and see how it goes. Seems that my fears of losing control of the system configuration were unfounded ;)

cheers

james.

bulliver 08-13-2003 05:51 AM

Well, what i'm saying is just having kernel support isn't going to do anything. You need to install the program itself to use devfs.

JamesM 08-13-2003 05:59 AM

Now I get you, & you're right - I thought you just had to compile into the kernel. Doh!

Maybe I will let sleeping dogs lie after all !!!

cheers for that,

james.


All times are GMT -5. The time now is 10:39 AM.