- support relatime / norelatime
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 6 Aug 2008 18:14:38 +0000 (18:14 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 6 Aug 2008 18:14:38 +0000 (18:14 -0000)
include/platform.h
include/usage.h
util-linux/mount.c

index d2c1f9d201da313e0baa1235f82020b982c52fc9..0f2f83a7dd5bbd4c01702e530038f9d86109f588 100644 (file)
@@ -350,7 +350,9 @@ static ALWAYS_INLINE char* strchrnul(const char *s, char c)
 #ifndef MS_SHARED
 #define MS_SHARED      (1<<20)
 #endif
-
+#ifndef MS_RELATIME
+#define MS_RELATIME   (1 << 21)
+#endif
 
 #if !defined(BLKSSZGET)
 #define BLKSSZGET _IO(0x12, 104)
index 78f40367e8130836956ed3979a4ee7a904d7f388..e242990887e0ea4a6072ee8f16311c6b4dae639a 100644 (file)
        "       [a]sync         Writes are asynchronous / synchronous\n" \
        "       [no]atime       Disable / enable updates to inode access times\n" \
        "       [no]diratime    Disable / enable atime updates to directories\n" \
+       "       [no]relatime    Disable / enable atime updates relative to modification time\n" \
        "       [no]dev         Allow use of special device files / disallow them\n" \
        "       [no]exec        Allow use of executable files / disallow them\n" \
        "       [no]suid        Allow set-user-id-root programs / disallow them\n" \
index 2288e2c7fac9fe1be682fcbefdca329d47d87176..4cc1d4bee9a505271a5002b5dce7865a359913bc 100644 (file)
@@ -137,6 +137,8 @@ static const int32_t mount_options[] = {
                /* "nodiratime"  */ MS_NODIRATIME,
                /* "mand"        */ MS_MANDLOCK,
                /* "nomand"      */ ~MS_MANDLOCK,
+               /* "relatime"    */ MS_RELATIME,
+               /* "norelatime"  */ ~MS_RELATIME,
                /* "loud"        */ ~MS_SILENT,
 
                // action flags
@@ -189,6 +191,8 @@ static const char mount_option_str[] =
                "nodiratime" "\0"
                "mand" "\0"
                "nomand" "\0"
+               "relatime" "\0"
+               "norelatime" "\0"
                "loud" "\0"
 
                // action flags