X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fmount_constants.h;h=4d050d8819e4953a8f79c69c2a3a245ce70c2b5f;hp=19a7bf586769c92370736d96b87bf46de9b9b25d;hb=HEAD;hpb=f8d5dd05dd28fe122832b229c5298d254eb4b581 diff --git a/utils/mount/mount_constants.h b/utils/mount/mount_constants.h index 19a7bf5..4d050d8 100644 --- a/utils/mount/mount_constants.h +++ b/utils/mount/mount_constants.h @@ -1,5 +1,5 @@ -#ifndef _NFS_MOUNT_CONSTANTS_H -#define _NFS_MOUNT_CONSTANTS_H +#ifndef _NFS_UTILS_MOUNT_CONSTANTS_H +#define _NFS_UTILS_MOUNT_CONSTANTS_H #ifndef MS_DIRSYNC #define MS_DIRSYNC 128 /* Directory modifications are synchronous */ @@ -39,6 +39,21 @@ if we have a stack or plain mount - mount atop of it, forming a stack. */ #ifndef MS_VERBOSE #define MS_VERBOSE 0x8000 /* 32768 */ #endif +#ifndef MS_RELATIME +#define MS_RELATIME 0x200000 /* 200000: Update access times relative + to mtime/ctime */ +#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. */ @@ -49,5 +64,8 @@ if we have a stack or plain mount - mount atop of it, forming a stack. */ #define MS_MGC_MSK 0xffff0000 /* magic flag number mask */ #endif -#endif /* _NFS_MOUNT_CONSTANTS_H */ +/* Generic options that are prevented from appearing + * in the options field in /etc/mtab. */ +#define MS_NOMTAB (MS_REMOUNT) +#endif /* _NFS_UTILS_MOUNT_CONSTANTS_H */