summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/mount/mount.c6
-rw-r--r--utils/mount/mount_constants.h5
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
*