From: Steve Dickson Date: Thu, 24 Jan 2008 22:02:08 +0000 (-0500) Subject: Added in relatime mount option so mount.nfs stays X-Git-Tag: nfs-utils-1-1-2~18 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=b5651e42cedc2b91aba87ea30520884d7f43b36f;hp=2d77e3a27b7b211f303fcc3a813a044838dad970 Added in relatime mount option so mount.nfs stays compatible with the mount command in util-linux-ng Signed-off-by: Steve Dickson --- 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 @@ -129,6 +129,12 @@ static const struct opt_map opt_map[] = { #ifdef MS_NODIRATIME { "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 *