summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-09-05 15:17:34 +0000
committerbde <bde@FreeBSD.org>1998-09-05 15:17:34 +0000
commita84a2dedfcc6ab465d871962744dd4e15b747178 (patch)
treefd2614e3af0b3e347d41f9bed74e16de0a21f0d5 /sys/kern
parent35e5c0c5bcdc2d95fb26d931cc0e1890ab19472d (diff)
downloadFreeBSD-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/kern')
-rw-r--r--sys/kern/vfs_export.c3
-rw-r--r--sys/kern/vfs_subr.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 1c1a427..ae94741 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.160 1998/08/12 20:17:42 bde Exp $
+ * $Id: vfs_subr.c,v 1.161 1998/08/29 13:13:10 bde Exp $
*/
/*
@@ -119,6 +119,7 @@ struct mntlist mountlist; /* mounted filesystem list */
struct simplelock mountlist_slock;
static struct simplelock mntid_slock;
struct simplelock mntvnode_slock;
+int nfs_mount_type = -1;
static struct simplelock vnode_free_list_slock;
static struct simplelock spechash_slock;
struct nfs_public nfs_pub; /* publicly exported FS */
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 1c1a427..ae94741 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.160 1998/08/12 20:17:42 bde Exp $
+ * $Id: vfs_subr.c,v 1.161 1998/08/29 13:13:10 bde Exp $
*/
/*
@@ -119,6 +119,7 @@ struct mntlist mountlist; /* mounted filesystem list */
struct simplelock mountlist_slock;
static struct simplelock mntid_slock;
struct simplelock mntvnode_slock;
+int nfs_mount_type = -1;
static struct simplelock vnode_free_list_slock;
static struct simplelock spechash_slock;
struct nfs_public nfs_pub; /* publicly exported FS */
OpenPOWER on IntegriCloud