diff options
author | bde <bde@FreeBSD.org> | 1996-07-30 18:00:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-07-30 18:00:32 +0000 |
commit | 63ae415aca7fea68d536c633cda385017d8b3afd (patch) | |
tree | 83db2fcf933ed06ded79ad64dd163b4b43152fb4 /sys/kern/vfs_subr.c | |
parent | 07baf622f9f70f70167d85e46f864c093a209c82 (diff) | |
download | FreeBSD-src-63ae415aca7fea68d536c633cda385017d8b3afd.zip FreeBSD-src-63ae415aca7fea68d536c633cda385017d8b3afd.tar.gz |
Only use the special bdevvp() for DEVFS if DEVFS_ROOT is defined. This
makes option DEVFS safe to use again (although mounting devfs is unsafe).
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 53747dc..3070b3e 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94 - * $Id: vfs_subr.c,v 1.55 1996/07/12 07:41:34 bde Exp $ + * $Id: vfs_subr.c,v 1.56 1996/07/24 21:21:43 phk Exp $ */ /* @@ -672,7 +672,7 @@ reassignbuf(bp, newvp) } } -#ifndef DEVFS +#ifndef DEVFS_ROOT /* * Create a vnode for a block device. * Used for root filesystem, argdev, and swap areas. @@ -703,8 +703,8 @@ bdevvp(dev, vpp) *vpp = vp; return (0); } +#endif /* !DEVFS_ROOT */ -#endif /* !DEVFS */ /* * Check to see if the new vnode represents a special device * for which we already have a vnode (either because of |