From 0796a5c56ed9d1eaf2c8691327b581fcfa3cd05b Mon Sep 17 00:00:00 2001 From: julian Date: Sun, 19 Apr 1998 23:32:49 +0000 Subject: Add changes and code to implement a functional DEVFS. This code will be turned on with the TWO options DEVFS and SLICE. (see LINT) Two labels PRE_DEVFS_SLICE and POST_DEVFS_SLICE will deliniate these changes. /dev will be automatically mounted by init (thanks phk) on bootup. See /sys/dev/slice/slice.4 for more info. All code should act the same without these options enabled. Mike Smith, Poul Henning Kamp, Soeren, and a few dozen others This code does not support the following: bad144 handling. Persistance. (My head is still hurting from the last time we discussed this) ATAPI flopies are not handled by the SLICE code yet. When this code is running, all major numbers are arbitrary and COULD be dynamically assigned. (this is not done, for POLA only) Minor numbers for disk slices ARE arbitray and dynamically assigned. --- sys/kern/vfs_mount.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/kern/vfs_mount.c') diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index a42a89a..ffe86ce 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * @(#)vfs_conf.c 8.8 (Berkeley) 3/31/94 - * $Id: vfs_conf.c,v 1.21 1998/02/09 06:09:32 eivind Exp $ + * $Id: vfs_conf.c,v 1.22 1998/03/11 00:10:31 msmith Exp $ */ /* @@ -73,9 +73,12 @@ MALLOC_DEFINE(M_MOUNT, "mount", "vfs mount struct"); static struct mount *rootfs; struct vnode *rootvnode; char *mountrootfsname; +#ifdef SLICE +char rootdevice[32]; +#endif /* SLICE */ #ifdef BOOTP extern void bootpc_init __P((void)); -#endif +#endif /* BOOTP */ /* * vfs_init() will set maxvfsconf -- cgit v1.1