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 /utils/mount/mount.c | |
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>
Diffstat (limited to 'utils/mount/mount.c')
-rw-r--r-- | utils/mount/mount.c | 6 |
1 files changed, 6 insertions, 0 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 } }; |