Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Devfs was declared obsolete today in the 2.6-test kernel!?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
toon
n00b
n00b


Joined: 26 Jan 2003
Posts: 58
Location: The Netherlands

PostPosted: Sat Aug 16, 2003 1:55 pm    Post subject: Devfs was declared obsolete today in the 2.6-test kernel!?! Reply with quote

Hi,

The subject says it all.
A few minutes ago I read a posting from Christoph Helwig
in the linux-kernel mailing list, in which he published a patch
for the 2.6-test kernel that declared devfs obsolete. In general,
most of the leading kernel developers want it to go, or so it appears.

Question: Gentoo uses devfs. What are the plans for the
2.6 kernel? Moving away from devfs? Are we maybe going to
adopt the userspace alternative that Greg Kroah Hartman
is working on?

Regards,
Toon.
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Sat Aug 16, 2003 2:39 pm    Post subject: Reply with quote

http://bugs.gentoo.org/show_bug.cgi?id=25292

Looks like official confirmation to me.
Back to top
View user's profile Send private message
toon
n00b
n00b


Joined: 26 Jan 2003
Posts: 58
Location: The Netherlands

PostPosted: Sat Aug 16, 2003 3:47 pm    Post subject: Reply with quote

Quote:
http://bugs.gentoo.org/show_bug.cgi?id=25292


Ah! Thanks for the link.
So the udev solution by GKH is indeed the way we will be going.
Back to top
View user's profile Send private message
wol
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2002
Posts: 107

PostPosted: Sun Aug 17, 2003 7:09 am    Post subject: Prep Needed? Reply with quote

Anyone know what we need to do to prep our current boxes?
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Sun Aug 17, 2003 7:34 am    Post subject: Reply with quote

devfs needs to die and be replaced with udev - which is "the correct way" to do it.

devfs is likely to be the most horrible piece of code in the kernel - it's bloated, ugly and errorprone. Even with the recent cleanups it's just icky.

/me is a big fan of udev, dbus and hotplug :)
Back to top
View user's profile Send private message
wol
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2002
Posts: 107

PostPosted: Sun Aug 17, 2003 12:24 pm    Post subject: Reply with quote

Ignoring the fact that even Greg K-H says that version 0.2 has rough edges, memory leaks, etc, I thought I would try it out (in the interest of giving myself an excuse to backup all data). In the README file for udev-0.2, there are at least two lines I don't understand.

1. change the define on UDEV_ROOT from
#define UDEV_ROOT "/udev/"

"as I doubt you really want device nodes to be created in my home directory"

I don't see /udev/ as pointing in any home directory. Wouldn't this be just under the root directory?

2. "Point /proc/sys/kernel/hotplug at the location of the udev binary that is created."

Point? If I cat /proc/sys/kernel/hotplug, I get back

/sbin/hotplug

/sbin/hotplug looks for scripts in /etc/hotplug/

I'm confused by the terminology "Point". Reading the overview in the docs/ doesn't help me. Can someone enlighten me .
_________________
Intellectual dishonesty is a mortal sin.
Back to top
View user's profile Send private message
invaderzim
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 93
Location: Louisville, KY

PostPosted: Wed Aug 27, 2003 1:12 am    Post subject: Reply with quote

echo /path/to/udev/binary/created > /proc/sys/kernel/hotplug
Back to top
View user's profile Send private message
thubble
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2003
Posts: 119
Location: Winnipeg, Canada

PostPosted: Sun Aug 31, 2003 8:58 pm    Post subject: Reply with quote

Before I install udev, I'd like to know a few things. (The documentation isn't very detailed)...

1.) Is this compatible enough with devfs that it won't completely hose the system with missing device nodes?
2.) What's the best thing to change UDEV_ROOT to? If I set it to /dev would it interact seamlessly with the filesystem or would it screw things up?

If anyone can answer this, I'd greatly appreciate it.
Back to top
View user's profile Send private message
rauar
n00b
n00b


Joined: 15 Mar 2003
Posts: 37

PostPosted: Wed Sep 24, 2003 12:33 am    Post subject: Reply with quote

wol wrote:
Ignoring the fact that even Greg K-H says that version 0.2 has rough edges, memory leaks, etc, I thought I would try it out (in the interest of giving myself an excuse to backup all data). In the README file for udev-0.2, there are at least two lines I don't understand.

1. change the define on UDEV_ROOT from
#define UDEV_ROOT "/udev/"

"as I doubt you really want device nodes to be created in my home directory"

I don't see /udev/ as pointing in any home directory. Wouldn't this be just under the root directory?


Check out namedev.h . NAMEDEV_CONFIG_ROOT gets defined as something in Greg's home directory.

Cheerz Al
Back to top
View user's profile Send private message
greg_g
Retired Dev
Retired Dev


Joined: 02 Mar 2003
Posts: 180

PostPosted: Thu Sep 25, 2003 8:14 pm    Post subject: Reply with quote

Linus accepted the patch, now it's official...
Quote:
ChangeSet@1.1325.1.8, 2003-09-23 23:42:53-07:00, akpm@osdl.org
[PATCH] mark devfs obsolete

From: Christoph Hellwig <hch@lst.de>

Richard hasn't touched it for about a year and since then only bugfixes and
my changes to the kernel interface went in. No one has stepped up to
maintain it and with udev we have a proper replacement now.

I will do some more work before 2.6 (mainly trying to implement Al's
refcounting scheme to avoid stale entries), but that's it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum