All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert Cahalan <albert@users.sf.net>
To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
Cc: rml@ximian.com, stan@ccs.neu.edu, Jari.Soderholm@edu.stadia.fi
Subject: Re: DEVFS is very good compared to UDEV
Date: 23 Dec 2003 22:33:15 -0500	[thread overview]
Message-ID: <1072236794.1743.244.camel@cube> (raw)

Rob Love writes:
> On Tue, 2003-12-23 at 16:20, Jari Soderholm wrote:

>> I am quite advanced Linux user who has used DEVFS quite
>> long time, and have also been a little suprised that it
>> has been marked OBSOLETE in 2.6 kernel.
>
> devfs is marked obsolete for more reasons that
> just the presence of udev.  Devfs is also buggy,
> poorly designed, and unmaintained.

That may be, but at least the idea wasn't defective.

>> DEVFS is a really simple to use, compile it into
>> kernel and configure the programs to use DEVFS
>> filenames and thats it.
>
> udev, in time, we be even easier than this: just
> install it.  It will use the historic kernel naming
> (FHS names) so you need not change your programs,
> although a devfs-style naming policy is possible

How quickly we forget where those names came from!
Richard Gooch originally used the traditional names.
Linus ordered the names changed as a condition for
acceptance into the kernel. Of course, that led to
devfsd being a requirement, which kind of took away
the whole point of using devfs.

The Linus-approved names made devfs a pain to use,
so few people used devfs and fewer helped out.

Richard is only to blame for his inability to spell
/dev/disk correctly. For that, he belongs in "jail"
with a "j". It was enough of an eyesore to make me
give up on devfs.

>> I think that it is very good that devicename
>> files are out from the disk, one cannot delete
>> those files, disk errors do not affect the,
>> and searching device files is faster.
>
> udev can store files on a tmpfs (or any other)
> mount, if so desired.

That can be done. It is neither clean nor fast.
It's a nasty hack to emulate a proper devfs.

>> Booting kernel is faster compared to UDEV.
>
> Today, udev is not even involved in booting,
> so this cannot possible be true.  If you mean
> running the udev initscript is slow, perhaps
> it is: but eventually that will not be needed.
>
> Also, udev is nascent and still under development.
> It has not been fine-tuned yet.

Certainly. It amuses me to no end watching sysfs
mutate into /proc++ and udev growing day by day.
Do you remember all the trash-talking about how
sysfs was going to be a strict and clean view of
the power management dependencies instead of a
bloated mess that slurps in random functionality
like /proc does?

Let's just get it over with: per-process XML
in /sys, built-in SQL engine, CJK i18n, an ASN.1
view of it all, and /sys/bin/GnomeMailReader.

>> And DEVFS has worked for years for me at least
>> very well, I haven't had any problems with it.
>
> Lucky you.  It is a mess.

I can well imagine not trusting it for a serious
multi-user shell box. It works for others.

>> If one you look at the /sysfs-directory there are
>> device filenames, (but not the actual devicefiles), so
>> it does same thing that DEVFS, but actually much worce
>> way, it created devicefilenames in the ram, but
>> one cannot use them, because they are not devicefiles.
>
> sysfs is a tree of the kernel's in-memory
> representation of devices.
>
> We do _not_ want to put the device naming
> policy in the kernel.  User-space should handle that.

Uh huh. They're named in /sys though, and on the
kernel command line for root and console.

We might as well admit to the truth here.

>> Why could you develop it so that UDEV could create
>> those actual device files there also, then most linux
>> users would not need those horrible scipts anymore.
>> All that is then needed link from /sysfs to /dev dir.
>
> This was proposed before, and certainly do-able.

Excellent. So we could have a real devfs, based on
kernel code that is supposedly more solid.

>> In my option good operating system kernel should
>> use disk and external programs little as possible.
>
> In my opinion, good operating system kernels should
> be wise to correctly delineate between what should
> be in user-space and what should be in the kernel.

There is no "correct". There are desktop systems,
stripped-down embedded boxes, full-featured embedded
boxes, business servers, compute cluster nodes...
An optional devfs is a very good choice to have.



             reply	other threads:[~2003-12-24  5:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-24  3:33 Albert Cahalan [this message]
2003-12-24 18:40 ` DEVFS is very good compared to UDEV Theodore Ts'o
  -- strict thread matches above, loose matches on Subject: below --
2003-12-23 21:20 Jari Soderholm
2003-12-23 21:50 ` Stan Bubrouski
2003-12-23 22:01 ` Rob Love
2003-12-23 22:21   ` Hua Zhong
2003-12-23 22:30     ` Rob Love
2003-12-23 23:00       ` Hua Zhong
2003-12-23 23:03         ` Rob Love
2003-12-23 23:14         ` Greg KH
2003-12-23 23:26         ` viro
2003-12-24  0:00           ` Mike Fedyk
2003-12-23 23:03     ` grundig
2003-12-23 23:05     ` viro
2003-12-24  2:24     ` Paul Jackson
2003-12-23 22:24 ` Felipe Alfaro Solana
2003-12-27 11:57 ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1072236794.1743.244.camel@cube \
    --to=albert@users.sf.net \
    --cc=Jari.Soderholm@edu.stadia.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@ximian.com \
    --cc=stan@ccs.neu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.