[LWN Logo]

Date:	Tue, 18 Apr 2000 15:35:28 -0400
From:	Jeff Garzik <jgarzik@mandrakesoft.com>
To:	Linus Torvalds <torvalds@transmeta.com>
Subject: PATCH 2.3.99.6.3: devfs nomount

This is a multi-part message in MIME format.
--------------DA9BBA3F77B32019DB203A43
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Linus,

Attached is a patch against 2.3.99-pre6-pre3 which makes 'devfs=nomount'
the default, when devfs is built into the kernel.

I like devfs but since including it in MandrakeSoft's hackkernel
package[1], it has been a fairly big PITA, since it forces people to
immediately upgrade their system, either installing devfsd package or
updating their lilo.conf.  Otherwise they have a non-bootable system. 
Subsystem upgrades often require userspace updates, but this is a fairly
harsh one.

This patch returns devfs to the [IMNSHO] correct Unix way:  not mounting
a filesystem until the user requests it.  While I would like all apps
and userland to be devfs friendly, making them all smarter ain't gonna
happen overnight... :)

Regards,

	Jeff





[1]  the RPM where I package the latest and great 2.3.x test release

-- 
Jeff Garzik              | Nothing cures insomnia like the
Building 1024            | realization that it's time to get up.
MandrakeSoft, Inc.       |        -- random fortune
--------------DA9BBA3F77B32019DB203A43
Content-Type: text/plain; charset=us-ascii;
 name="devfs-nomount-2.3.99.6.3.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="devfs-nomount-2.3.99.6.3.patch"

--- vanilla/linux-2.3.99-pre6-pre3/fs/devfs/base.c	Mon Apr 17 10:43:56 2000
+++ linux/fs/devfs/base.c	Tue Apr 18 15:23:21 2000
@@ -679,7 +679,9 @@
 static unsigned int devfs_debug = DEBUG_NONE;
 #  endif
 #endif
-static unsigned int boot_options = OPTION_NONE;
+
+/* by default, we do not mount devfs on bootup */
+static unsigned int boot_options = OPTION_NOMOUNT;
 
 /*  Forward function declarations  */
 static struct devfs_entry *search_for_entry (struct devfs_entry *dir,

--------------DA9BBA3F77B32019DB203A43--


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