diff options
author | Steve Dickson <steved@redhat.com> | 2008-01-24 17:02:08 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-01-24 17:02:08 -0500 |
commit | b5651e42cedc2b91aba87ea30520884d7f43b36f (patch) | |
tree | 3080eb5e3fdb5964ee47d855dfc7c4485b1f8633 | |
parent | 2d77e3a27b7b211f303fcc3a813a044838dad970 (diff) | |
download | nfs-utils-b5651e42cedc2b91aba87ea30520884d7f43b36f.tar.gz nfs-utils-b5651e42cedc2b91aba87ea30520884d7f43b36f.tar.xz nfs-utils-b5651e42cedc2b91aba87ea30520884d7f43b36f.zip |
Added in relatime mount option so mount.nfs stays
compatible with the mount command in util-linux-ng
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/mount/mount.c | 6 | ||||
-rw-r--r-- | utils/mount/mount_constants.h | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c index ea47cb4..403d6f4 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -130,6 +130,12 @@ static const struct opt_map opt_map[] = { { "diratime", 0, 1, MS_NODIRATIME }, /* Update dir access times */ { "nodiratime", 0, 0, MS_NODIRATIME },/* Do not update dir access times */ #endif +#ifdef MS_RELATIME + { "relatime", 0, 0, MS_RELATIME }, /* Update access times relative to + mtime/ctime */ + { "norelatime", 0, 1, MS_RELATIME }, /* Update access time without regard + to mtime/ctime */ +#endif { NULL, 0, 0, 0 } }; diff --git a/utils/mount/mount_constants.h b/utils/mount/mount_constants.h index 7c972da..4f3c729 100644 --- a/utils/mount/mount_constants.h +++ b/utils/mount/mount_constants.h @@ -39,7 +39,10 @@ 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 * |