public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devfs: remove devfs from Kconfig preventing it from being built
@ 2005-06-21 22:24 Greg KH
  2005-06-21 22:59 ` David S. Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2005-06-21 22:24 UTC (permalink / raw)
  To: torvalds, Andrew Morton; +Cc: linux-kernel

Here's a much smaller patch to simply disable devfs from the build.  If
this goes well, and there are no complaints for a few weeks, I'll resend
my big "devfs-die-die-die" series of patches that rip the whole thing
out of the kernel tree.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 fs/Kconfig |   50 --------------------------------------------------
 1 files changed, 50 deletions(-)

--- gregkh-2.6.orig/fs/Kconfig	2005-06-21 14:46:34.000000000 -0700
+++ gregkh-2.6/fs/Kconfig	2005-06-21 14:48:27.000000000 -0700
@@ -741,56 +741,6 @@
 
 	Designers of embedded systems may wish to say N here to conserve space.
 
-config DEVFS_FS
-	bool "/dev file system support (OBSOLETE)"
-	depends on EXPERIMENTAL
-	help
-	  This is support for devfs, a virtual file system (like /proc) which
-	  provides the file system interface to device drivers, normally found
-	  in /dev. Devfs does not depend on major and minor number
-	  allocations. Device drivers register entries in /dev which then
-	  appear automatically, which means that the system administrator does
-	  not have to create character and block special device files in the
-	  /dev directory using the mknod command (or MAKEDEV script) anymore.
-
-	  This is work in progress. If you want to use this, you *must* read
-	  the material in <file:Documentation/filesystems/devfs/>, especially
-	  the file README there.
-
-	  Note that devfs no longer manages /dev/pts!  If you are using UNIX98
-	  ptys, you will also need to mount the /dev/pts filesystem (devpts).
-
-	  Note that devfs has been obsoleted by udev,
-	  <http://www.kernel.org/pub/linux/utils/kernel/hotplug/>.
-	  It has been stripped down to a bare minimum and is only provided for
-	  legacy installations that use its naming scheme which is
-	  unfortunately different from the names normal Linux installations
-	  use.
-
-	  If unsure, say N.
-
-config DEVFS_MOUNT
-	bool "Automatically mount at boot"
-	depends on DEVFS_FS
-	help
-	  This option appears if you have CONFIG_DEVFS_FS enabled. Setting
-	  this to 'Y' will make the kernel automatically mount devfs onto /dev
-	  when the system is booted, before the init thread is started.
-	  You can override this with the "devfs=nomount" boot option.
-
-	  If unsure, say N.
-
-config DEVFS_DEBUG
-	bool "Debug devfs"
-	depends on DEVFS_FS
-	help
-	  If you say Y here, then the /dev file system code will generate
-	  debugging messages. See the file
-	  <file:Documentation/filesystems/devfs/boot-options> for more
-	  details.
-
-	  If unsure, say N.
-
 config DEVPTS_FS_XATTR
 	bool "/dev/pts Extended Attributes"
 	depends on UNIX98_PTYS

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-21 22:24 [PATCH] devfs: remove devfs from Kconfig preventing it from being built Greg KH
@ 2005-06-21 22:59 ` David S. Miller
  2005-06-22  4:13   ` Greg KH
  2005-06-22  8:22   ` Christoph Hellwig
  0 siblings, 2 replies; 12+ messages in thread
From: David S. Miller @ 2005-06-21 22:59 UTC (permalink / raw)
  To: gregkh; +Cc: torvalds, akpm, linux-kernel

From: Greg KH <gregkh@suse.de>
Date: Tue, 21 Jun 2005 15:24:19 -0700

> Here's a much smaller patch to simply disable devfs from the build.  If
> this goes well, and there are no complaints for a few weeks, I'll resend
> my big "devfs-die-die-die" series of patches that rip the whole thing
> out of the kernel tree.
> 
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

I know the rational behind this.

However, this does mean I do need to reinstall a couple
debian boxes here to something newer before I can continue
doing kernel work in 2.6.x on them.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-21 22:59 ` David S. Miller
@ 2005-06-22  4:13   ` Greg KH
  2005-06-22  4:45     ` David S. Miller
  2005-06-22  8:22   ` Christoph Hellwig
  1 sibling, 1 reply; 12+ messages in thread
From: Greg KH @ 2005-06-22  4:13 UTC (permalink / raw)
  To: David S. Miller; +Cc: torvalds, akpm, linux-kernel

On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
> From: Greg KH <gregkh@suse.de>
> Date: Tue, 21 Jun 2005 15:24:19 -0700
> 
> > Here's a much smaller patch to simply disable devfs from the build.  If
> > this goes well, and there are no complaints for a few weeks, I'll resend
> > my big "devfs-die-die-die" series of patches that rip the whole thing
> > out of the kernel tree.
> > 
> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> 
> I know the rational behind this.
> 
> However, this does mean I do need to reinstall a couple
> debian boxes here to something newer before I can continue
> doing kernel work in 2.6.x on them.

Those boxes rely on devfs?

Can't you just grab the "static dev" debian package and continue on?
I'm sure there is one in there somewhere (don't really know for sure,
not running debian anywhere here, sorry.)

Or how about a tarball of a /dev tree?  Would that help you out?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  4:13   ` Greg KH
@ 2005-06-22  4:45     ` David S. Miller
  2005-06-22  6:23       ` Coywolf Qi Hunt
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: David S. Miller @ 2005-06-22  4:45 UTC (permalink / raw)
  To: gregkh; +Cc: torvalds, akpm, linux-kernel

From: Greg KH <gregkh@suse.de>
Date: Tue, 21 Jun 2005 21:13:30 -0700

> On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
> > From: Greg KH <gregkh@suse.de>
> > Date: Tue, 21 Jun 2005 15:24:19 -0700
> > 
> > However, this does mean I do need to reinstall a couple
> > debian boxes here to something newer before I can continue
> > doing kernel work in 2.6.x on them.
> 
> Those boxes rely on devfs?

Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
kernel config the machine won't boot. :-)

> Can't you just grab the "static dev" debian package and continue on?
> I'm sure there is one in there somewhere (don't really know for sure,
> not running debian anywhere here, sorry.)
> 
> Or how about a tarball of a /dev tree?  Would that help you out?

I don't know if Debian has such a package.

Don't worry, I'll take care of this by simply reinstalling
and thus moving to udev.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  4:45     ` David S. Miller
@ 2005-06-22  6:23       ` Coywolf Qi Hunt
  2005-06-22  8:37         ` J.A. Magallon
  2005-06-22  6:40       ` Martin J. Bligh
  2005-06-23 10:02       ` Helge Hafting
  2 siblings, 1 reply; 12+ messages in thread
From: Coywolf Qi Hunt @ 2005-06-22  6:23 UTC (permalink / raw)
  To: David S. Miller; +Cc: gregkh, torvalds, akpm, linux-kernel

On 6/22/05, David S. Miller <davem@davemloft.net> wrote:
> From: Greg KH <gregkh@suse.de>
> Date: Tue, 21 Jun 2005 21:13:30 -0700
> 
> > On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
> > > From: Greg KH <gregkh@suse.de>
> > > Date: Tue, 21 Jun 2005 15:24:19 -0700
> > >
> > > However, this does mean I do need to reinstall a couple
> > > debian boxes here to something newer before I can continue
> > > doing kernel work in 2.6.x on them.
> >
> > Those boxes rely on devfs?
> 
> Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
> kernel config the machine won't boot. :-)
> 
> > Can't you just grab the "static dev" debian package and continue on?
> > I'm sure there is one in there somewhere (don't really know for sure,
> > not running debian anywhere here, sorry.)
> >
> > Or how about a tarball of a /dev tree?  Would that help you out?

There's /sbin/MAKEDEV on debian.

> 
> I don't know if Debian has such a package.
> 
> Don't worry, I'll take care of this by simply reinstalling
> and thus moving to udev.

Moving to udev is right. Still you need a "static dev" in case your
udev not working.

Use /sbin/MAKEDEV from makedev package.

-- 
Coywolf Qi Hunt
http://ahbl.org/~coywolf/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  4:45     ` David S. Miller
  2005-06-22  6:23       ` Coywolf Qi Hunt
@ 2005-06-22  6:40       ` Martin J. Bligh
  2005-06-23  3:45         ` Jim Crilly
  2005-06-23 10:02       ` Helge Hafting
  2 siblings, 1 reply; 12+ messages in thread
From: Martin J. Bligh @ 2005-06-22  6:40 UTC (permalink / raw)
  To: David S. Miller, gregkh; +Cc: torvalds, akpm, linux-kernel

>> > However, this does mean I do need to reinstall a couple
>> > debian boxes here to something newer before I can continue
>> > doing kernel work in 2.6.x on them.
>> 
>> Those boxes rely on devfs?
> 
> Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
> kernel config the machine won't boot. :-)
> 
>> Can't you just grab the "static dev" debian package and continue on?
>> I'm sure there is one in there somewhere (don't really know for sure,
>> not running debian anywhere here, sorry.)
>> 
>> Or how about a tarball of a /dev tree?  Would that help you out?
> 
> I don't know if Debian has such a package.
> 
> Don't worry, I'll take care of this by simply reinstalling
> and thus moving to udev.

??? I use debian sarge all the time with kernel.org kernels that don't
have devfs compiled in, and I don't use udev either. Works across ia32,
x86_64, and PPC64 (32 bit userspace) at least, with no trouble at all,
out of the box. I did the same with Woody as well before that ...

M.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-21 22:59 ` David S. Miller
  2005-06-22  4:13   ` Greg KH
@ 2005-06-22  8:22   ` Christoph Hellwig
  2005-06-22 15:34     ` Nix
  1 sibling, 1 reply; 12+ messages in thread
From: Christoph Hellwig @ 2005-06-22  8:22 UTC (permalink / raw)
  To: David S. Miller; +Cc: gregkh, torvalds, akpm, linux-kernel

On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
> I know the rational behind this.
> 
> However, this does mean I do need to reinstall a couple
> debian boxes here to something newer before I can continue
> doing kernel work in 2.6.x on them.

I have half a dozend debian sarge,etch and sid boxes on various architectures
and they work just fine without devfs.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  6:23       ` Coywolf Qi Hunt
@ 2005-06-22  8:37         ` J.A. Magallon
  2005-06-22  9:23           ` Coywolf Qi Hunt
  0 siblings, 1 reply; 12+ messages in thread
From: J.A. Magallon @ 2005-06-22  8:37 UTC (permalink / raw)
  To: linux-kernel


On 06.22, Coywolf Qi Hunt wrote:
> On 6/22/05, David S. Miller <davem@davemloft.net> wrote:
> > From: Greg KH <gregkh@suse.de>
> > Date: Tue, 21 Jun 2005 21:13:30 -0700
> > 
> > > On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
> > > > From: Greg KH <gregkh@suse.de>
> > > > Date: Tue, 21 Jun 2005 15:24:19 -0700
> > > >
> > > > However, this does mean I do need to reinstall a couple
> > > > debian boxes here to something newer before I can continue
> > > > doing kernel work in 2.6.x on them.
> > >
> > > Those boxes rely on devfs?
> > 
> > Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
> > kernel config the machine won't boot. :-)
> > 
> > > Can't you just grab the "static dev" debian package and continue on?
> > > I'm sure there is one in there somewhere (don't really know for sure,
> > > not running debian anywhere here, sorry.)
> > >
> > > Or how about a tarball of a /dev tree?  Would that help you out?
> 
> There's /sbin/MAKEDEV on debian.
> 
> > 
> > I don't know if Debian has such a package.
> > 
> > Don't worry, I'll take care of this by simply reinstalling
> > and thus moving to udev.
> 
> Moving to udev is right. Still you need a "static dev" in case your
> udev not working.
> 
> Use /sbin/MAKEDEV from makedev package.
> 

A nice addition to udev package would be an standard minimal /dev tree
to allow booting till init and running udev as the first thing...
A tar.gz you could just unpack on a new box or on an initrd.

;)

--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandriva Linux release 2006.0 (Cooker) for i586
Linux 2.6.12-jam1 (gcc 4.0.1 (4.0.1-0.2mdk for Mandriva Linux release 2006.0))



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  8:37         ` J.A. Magallon
@ 2005-06-22  9:23           ` Coywolf Qi Hunt
  0 siblings, 0 replies; 12+ messages in thread
From: Coywolf Qi Hunt @ 2005-06-22  9:23 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: linux-kernel

On 6/22/05, J.A. Magallon <jamagallon@able.es> wrote:
> 
> On 06.22, Coywolf Qi Hunt wrote:
> > On 6/22/05, David S. Miller <davem@davemloft.net> wrote:
> > > From: Greg KH <gregkh@suse.de>
> > > Date: Tue, 21 Jun 2005 21:13:30 -0700
> > >
> > > > On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
> > > > > From: Greg KH <gregkh@suse.de>
> > > > > Date: Tue, 21 Jun 2005 15:24:19 -0700
> > > > >
> > > > > However, this does mean I do need to reinstall a couple
> > > > > debian boxes here to something newer before I can continue
> > > > > doing kernel work in 2.6.x on them.
> > > >
> > > > Those boxes rely on devfs?
> > >
> > > Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
> > > kernel config the machine won't boot. :-)
> > >
> > > > Can't you just grab the "static dev" debian package and continue on?
> > > > I'm sure there is one in there somewhere (don't really know for sure,
> > > > not running debian anywhere here, sorry.)
> > > >
> > > > Or how about a tarball of a /dev tree?  Would that help you out?
> >
> > There's /sbin/MAKEDEV on debian.
> >
> > >
> > > I don't know if Debian has such a package.
> > >
> > > Don't worry, I'll take care of this by simply reinstalling
> > > and thus moving to udev.
> >
> > Moving to udev is right. Still you need a "static dev" in case your
> > udev not working.
> >
> > Use /sbin/MAKEDEV from makedev package.
> >
> 
> A nice addition to udev package would be an standard minimal /dev tree
> to allow booting till init and running udev as the first thing...
> A tar.gz you could just unpack on a new box or on an initrd.
> 
> ;)


I guess we've already got one in initramfs.
The "static" /dev is still necessary. I once killed my udevd, and the
static /dev revealed.

-- 
Coywolf Qi Hunt
http://ahbl.org/~coywolf/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  8:22   ` Christoph Hellwig
@ 2005-06-22 15:34     ` Nix
  0 siblings, 0 replies; 12+ messages in thread
From: Nix @ 2005-06-22 15:34 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: David S. Miller, gregkh, torvalds, akpm, linux-kernel

On 22 Jun 2005, Christoph Hellwig wrote:
> On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
>> I know the rational behind this.
>> 
>> However, this does mean I do need to reinstall a couple
>> debian boxes here to something newer before I can continue
>> doing kernel work in 2.6.x on them.
> 
> I have half a dozend debian sarge,etch and sid boxes on various architectures
> and they work just fine without devfs.

Everything works until you put your root filesystem on LVM (or RAID,
perhaps, but I've never used that so can't be sure).

The Debian initrd-tools rely on devfs to populate block devices
corresponding to physical disks. If you explictlly name your root
filesystem, you're safe even without devfs, because the initrd's
/sbin/init script also explicitly mknods your root device --- but if
your root filesystem is on LVM, well, vgscan needs to search your
physical disks, which means that they have to exist *before* vgscan
runs, for which it uses devfs and only devfs.

Debian users in this situation can always build their own initrds --- I
did --- but it's, er, not something I'd expect users to be able to do.


Of course, killing off devfs now might prod the Debian maintainers into
populating physical devices using udev instead ;)

(There is a Debian bug for this, #312871. It's marked as wishlist, which
strikes me as much too low.)

-- 
`It's as bizarre an intrusion as, I don't know, the hobbits coming home
 to find that the Shire has been taken over by gangsta rappers.'

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  6:40       ` Martin J. Bligh
@ 2005-06-23  3:45         ` Jim Crilly
  0 siblings, 0 replies; 12+ messages in thread
From: Jim Crilly @ 2005-06-23  3:45 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: David S. Miller, gregkh, torvalds, akpm, linux-kernel

On 06/21/05 11:40:06PM -0700, Martin J. Bligh wrote:
> >> > However, this does mean I do need to reinstall a couple
> >> > debian boxes here to something newer before I can continue
> >> > doing kernel work in 2.6.x on them.
> >> 
> >> Those boxes rely on devfs?
> > 
> > Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
> > kernel config the machine won't boot. :-)
> > 
> >> Can't you just grab the "static dev" debian package and continue on?
> >> I'm sure there is one in there somewhere (don't really know for sure,
> >> not running debian anywhere here, sorry.)
> >> 
> >> Or how about a tarball of a /dev tree?  Would that help you out?
> > 
> > I don't know if Debian has such a package.
> > 
> > Don't worry, I'll take care of this by simply reinstalling
> > and thus moving to udev.
> 
> ??? I use debian sarge all the time with kernel.org kernels that don't
> have devfs compiled in, and I don't use udev either. Works across ia32,
> x86_64, and PPC64 (32 bit userspace) at least, with no trouble at all,
> out of the box. I did the same with Woody as well before that ...

I think he's just saying that since he did the install with devfs enabled
and has been using devfs device names, a conversion back to 'standard'
names would be a major PITA. It's definately possible to convert, but if
there's not much on the boxes a reinstall might be quicker.

> 
> M.

Jim.

> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] devfs: remove devfs from Kconfig preventing it from being built
  2005-06-22  4:45     ` David S. Miller
  2005-06-22  6:23       ` Coywolf Qi Hunt
  2005-06-22  6:40       ` Martin J. Bligh
@ 2005-06-23 10:02       ` Helge Hafting
  2 siblings, 0 replies; 12+ messages in thread
From: Helge Hafting @ 2005-06-23 10:02 UTC (permalink / raw)
  To: David S. Miller; +Cc: jim, linux-kernel

David S. Miller wrote:

>From: Greg KH <gregkh@suse.de>
>Date: Tue, 21 Jun 2005 21:13:30 -0700
>
>  
>
>>On Tue, Jun 21, 2005 at 03:59:19PM -0700, David S. Miller wrote:
>>    
>>
>>>From: Greg KH <gregkh@suse.de>
>>>Date: Tue, 21 Jun 2005 15:24:19 -0700
>>>
>>>However, this does mean I do need to reinstall a couple
>>>debian boxes here to something newer before I can continue
>>>doing kernel work in 2.6.x on them.
>>>      
>>>
>>Those boxes rely on devfs?
>>    
>>
>
>Yeah, when I forget to turn on DEVFS_FS and DEVFS_MOUNT in the
>kernel config the machine won't boot. :-)
>
>  
>
>>Can't you just grab the "static dev" debian package and continue on?
>>I'm sure there is one in there somewhere (don't really know for sure,
>>not running debian anywhere here, sorry.)
>>
>>Or how about a tarball of a /dev tree?  Would that help you out?
>>    
>>
>
>I don't know if Debian has such a package.
>
>Don't worry, I'll take care of this by simply reinstalling
>and thus moving to udev.
>
That works, but seems like "the long way".
You don't need to be given a tarball of a /dev tree - make your own!
tar up your existing devfs-based /dev tree (at a time when all
your devices are present)  then umount devfs and untar it
all.   Then you have a static /dev which works with the existing setup,
and a nondevfs kernel can boot right away.

The udev way may be necessary if you actually have lots of devices
that come and go, such as usb thingies.  It shouldn't be necessary
just to boot the machine though.

Jim Crilly wrote:

>I think he's just saying that since he did the install with devfs enabled
>and has been using devfs device names, a conversion back to 'standard'
>names would be a major PITA. It's definately possible to convert, but if
>there's not much on the boxes a reinstall might be quicker.

Fortunately, one doesn't need to convert back.  Just copy devfs-dev onto
ext3-dev and there you have the "good old" devfs-names in a static /dev.

Helge Hafting




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-06-23 10:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 22:24 [PATCH] devfs: remove devfs from Kconfig preventing it from being built Greg KH
2005-06-21 22:59 ` David S. Miller
2005-06-22  4:13   ` Greg KH
2005-06-22  4:45     ` David S. Miller
2005-06-22  6:23       ` Coywolf Qi Hunt
2005-06-22  8:37         ` J.A. Magallon
2005-06-22  9:23           ` Coywolf Qi Hunt
2005-06-22  6:40       ` Martin J. Bligh
2005-06-23  3:45         ` Jim Crilly
2005-06-23 10:02       ` Helge Hafting
2005-06-22  8:22   ` Christoph Hellwig
2005-06-22 15:34     ` Nix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox