summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-03-18 22:47:28 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-03-18 22:47:28 +0000
commit2e443d98dddc7abe239819ab4c58b3a7c4370533 (patch)
tree6a969a5a2e9b49fa9bbd193a61198a6b33354e0b /sys
parentc5b28e26834365786e8c5a20412ae22ae79c1ed3 (diff)
initialize all fileds in vfsconf when installing a new filesystem.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_lkm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c
index 6fa49bf1493..c5e905acadc 100644
--- a/sys/kern/kern_lkm.c
+++ b/sys/kern/kern_lkm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lkm.c,v 1.22 1998/03/17 05:30:18 art Exp $ */
+/* $OpenBSD: kern_lkm.c,v 1.23 1998/03/18 22:47:27 art Exp $ */
/* $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $ */
/*
@@ -724,6 +724,12 @@ _lkm_vfs(lkmtp, cmd)
min(strlen(args->lkm_name) + 1, MFSNAMELEN));
#undef min
+ vfsp->vfc_typenum = 0;
+ vfsp->vfc_refcount = 0;
+ vfsp->vfc_flags = 0; /* XXX - should be configurable */
+ vfsp->vfc_mountroot = 0;
+ vfsp->vfc_next = NULL;
+
maxvfsconf++;
/* Call init function for this VFS... */