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/miscfs/devfs | |
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/miscfs/devfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c index 0db8960..6342cef 100644 --- a/sys/miscfs/devfs/devfs_tree.c +++ b/sys/miscfs/devfs/devfs_tree.c @@ -2,7 +2,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.25 1996/06/12 05:08:29 gpalmer Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.26 1996/07/24 21:22:36 phk Exp $ */ #include "param.h" @@ -783,6 +783,7 @@ DBPRINT((" vntodn ")); return(0); } +#ifdef DEVFS_ROOT static dn_p findbdev(dev_t dev, dn_p dir) { @@ -818,6 +819,7 @@ bdevvp(dev_t dev, struct vnode **vpp) return (0); return (devfs_dntovn(dnp, vpp)); } +#endif /* DEVFS_ROOT */ /***************************************************************\ * given a dev_node, find the appropriate vnode if one is already* |