summaryrefslogtreecommitdiffstats
path: root/utils/mount/mount_constants.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-07-16 16:28:56 -0400
committerNeil Brown <neilb@suse.de>2007-07-20 16:10:54 +1000
commitc0f7366f3ae8de8a62e3cc6824080e02e780f3b2 (patch)
tree26c1a7a3a4d385df94db3c2f184e2c48b13ec058 /utils/mount/mount_constants.h
parent66ab98cbd17f7f54edda78a470579d3ab01f35c0 (diff)
downloadnfs-utils-c0f7366f3ae8de8a62e3cc6824080e02e780f3b2.tar.gz
nfs-utils-c0f7366f3ae8de8a62e3cc6824080e02e780f3b2.tar.xz
nfs-utils-c0f7366f3ae8de8a62e3cc6824080e02e780f3b2.zip
mount.nfs: Move MS_DUMMY and friends to header file
We move the definitions of MS_USER and friends to our local copy of mount_constants.h. These will need to be available in nfsmount.c and nfs4mount.c when we move the mount system call out of mount.c. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/mount_constants.h')
-rw-r--r--utils/mount/mount_constants.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/mount/mount_constants.h b/utils/mount/mount_constants.h
index 19a7bf5..ff7b3bc 100644
--- a/utils/mount/mount_constants.h
+++ b/utils/mount/mount_constants.h
@@ -39,6 +39,18 @@ if we have a stack or plain mount - mount atop of it, forming a stack. */
#ifndef MS_VERBOSE
#define MS_VERBOSE 0x8000 /* 32768 */
#endif
+
+/*
+ * NFS fs-specific mount option flags
+ *
+ * MS_DUMMY is assigned to mount options that are not to be
+ * passed to the kernel via the "flags" argument. These are
+ * generally ignored or handled entirely in user space.
+ */
+#define MS_DUMMY 0x00000000
+#define MS_USERS 0x40000000
+#define MS_USER 0x80000000
+
/*
* Magic mount flag number. Had to be or-ed to the flag values.
*/