diff options
author | bde <bde@FreeBSD.org> | 1998-09-05 15:17:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-09-05 15:17:34 +0000 |
commit | a84a2dedfcc6ab465d871962744dd4e15b747178 (patch) | |
tree | fd2614e3af0b3e347d41f9bed74e16de0a21f0d5 /sys/nfs | |
parent | 35e5c0c5bcdc2d95fb26d931cc0e1890ab19472d (diff) | |
download | FreeBSD-src-a84a2dedfcc6ab465d871962744dd4e15b747178.zip FreeBSD-src-a84a2dedfcc6ab465d871962744dd4e15b747178.tar.gz |
Instantiate `nfs_mount_type' in a standard file so that it is present
when nfs is an LKM. Declare it in a header file. Don't forget to use
it in non-Lite2 code. Initialize it to -1 instead of to 0, since 0
will soon be the mount type number for the first vfs loaded.
NetBSD uses strcmp() to avoid this ugly global.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_common.c | 3 | ||||
-rw-r--r-- | sys/nfs/nfs_nqlease.c | 3 | ||||
-rw-r--r-- | sys/nfs/nfs_subs.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c index 0ccac22..d4d9280 100644 --- a/sys/nfs/nfs_common.c +++ b/sys/nfs/nfs_common.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.62 1998/06/14 15:52:00 bde Exp $ + * $Id: nfs_subs.c,v 1.63 1998/06/21 12:50:12 bde Exp $ */ /* @@ -98,7 +98,6 @@ enum vtype nv3tov_type[8]= { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO }; -int nfs_mount_type; int nfs_ticks; struct nfs_reqq nfs_reqq; diff --git a/sys/nfs/nfs_nqlease.c b/sys/nfs/nfs_nqlease.c index 5d15e0e..a9464dc 100644 --- a/sys/nfs/nfs_nqlease.c +++ b/sys/nfs/nfs_nqlease.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_nqlease.c 8.9 (Berkeley) 5/20/95 - * $Id: nfs_nqlease.c,v 1.36 1998/05/31 17:27:46 peter Exp $ + * $Id: nfs_nqlease.c,v 1.37 1998/05/31 20:08:52 peter Exp $ */ @@ -137,7 +137,6 @@ extern nfstype nfsv3_type[9]; extern struct nfssvc_sock *nfs_udpsock, *nfs_cltpsock; extern int nfsd_waiting; extern struct nfsstats nfsstats; -extern int nfs_mount_type; #define TRUE 1 #define FALSE 0 diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 0ccac22..d4d9280 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.62 1998/06/14 15:52:00 bde Exp $ + * $Id: nfs_subs.c,v 1.63 1998/06/21 12:50:12 bde Exp $ */ /* @@ -98,7 +98,6 @@ enum vtype nv3tov_type[8]= { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO }; -int nfs_mount_type; int nfs_ticks; struct nfs_reqq nfs_reqq; |