summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-11-12 05:42:33 +0000
committerjulian <julian@FreeBSD.org>1997-11-12 05:42:33 +0000
commitae22df605c505c7004dbd0315e0c8a69837113ac (patch)
treec92335bedfadb094a99ac0f1f934ff8b75ad8f50 /sys/nfs/nfs_vfsops.c
parent88e48b4b98e11a59cad7cf68de7887e54bc94a5b (diff)
downloadFreeBSD-src-ae22df605c505c7004dbd0315e0c8a69837113ac.zip
FreeBSD-src-ae22df605c505c7004dbd0315e0c8a69837113ac.tar.gz
Reviewed by: various.
Ever since I first say the way the mount flags were used I've hated the fact that modes, and events, internal and exported, and short-term and long term flags are all thrown together. Finally it's annoyed me enough.. This patch to the entire FreeBSD tree adds a second mount flag word to the mount struct. it is not exported to userspace. I have moved some of the non exported flags over to this word. this means that we now have 8 free bits in the mount flags. There are another two that might well move over, but which I'm not sure about. The only user visible change would have been in pstat -v, except that davidg has disabled it anyhow. I'd still like to move the state flags and the 'command' flags apart from each other.. e.g. MNT_FORCE really doesn't have the same semantics as MNT_RDONLY, but that's left for another day.
Diffstat (limited to 'sys/nfs/nfs_vfsops.c')
-rw-r--r--sys/nfs/nfs_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index de9babf..d7f112e 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
- * $Id: nfs_vfsops.c,v 1.50 1997/10/28 14:06:23 bde Exp $
+ * $Id: nfs_vfsops.c,v 1.51 1997/10/28 15:59:12 bde Exp $
*/
#include <sys/param.h>
@@ -562,6 +562,7 @@ nfs_mountdiskless(path, which, mountflag, sin, args, p, vpp, mpp)
return (error);
}
+ mp->mnt_kern_flag = 0;
mp->mnt_flag = mountflag;
nam = dup_sockaddr((struct sockaddr *)sin, 1);
if (error = mountnfs(args, mp, nam, which, path, vpp)) {
OpenPOWER on IntegriCloud