diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-08-06 18:14:38 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-08-06 18:14:38 +0000 |
commit | fb5902ca5cf802557eb1e3c56502a2f5e27242f4 (patch) | |
tree | b7270a59ca4639255067d7a6bc0a965d4ab6b0fe | |
parent | 1dbc643dd34df4daafe5a1835e325d0d74c8b70f (diff) | |
download | busybox-w32-fb5902ca5cf802557eb1e3c56502a2f5e27242f4.tar.gz busybox-w32-fb5902ca5cf802557eb1e3c56502a2f5e27242f4.tar.bz2 busybox-w32-fb5902ca5cf802557eb1e3c56502a2f5e27242f4.zip |
- support relatime / norelatime
-rw-r--r-- | include/platform.h | 4 | ||||
-rw-r--r-- | include/usage.h | 1 | ||||
-rw-r--r-- | util-linux/mount.c | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h index d2c1f9d20..0f2f83a7d 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -350,7 +350,9 @@ static ALWAYS_INLINE char* strchrnul(const char *s, char c) | |||
350 | #ifndef MS_SHARED | 350 | #ifndef MS_SHARED |
351 | #define MS_SHARED (1<<20) | 351 | #define MS_SHARED (1<<20) |
352 | #endif | 352 | #endif |
353 | 353 | #ifndef MS_RELATIME | |
354 | #define MS_RELATIME (1 << 21) | ||
355 | #endif | ||
354 | 356 | ||
355 | #if !defined(BLKSSZGET) | 357 | #if !defined(BLKSSZGET) |
356 | #define BLKSSZGET _IO(0x12, 104) | 358 | #define BLKSSZGET _IO(0x12, 104) |
diff --git a/include/usage.h b/include/usage.h index 78f40367e..e24299088 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2661,6 +2661,7 @@ | |||
2661 | " [a]sync Writes are asynchronous / synchronous\n" \ | 2661 | " [a]sync Writes are asynchronous / synchronous\n" \ |
2662 | " [no]atime Disable / enable updates to inode access times\n" \ | 2662 | " [no]atime Disable / enable updates to inode access times\n" \ |
2663 | " [no]diratime Disable / enable atime updates to directories\n" \ | 2663 | " [no]diratime Disable / enable atime updates to directories\n" \ |
2664 | " [no]relatime Disable / enable atime updates relative to modification time\n" \ | ||
2664 | " [no]dev Allow use of special device files / disallow them\n" \ | 2665 | " [no]dev Allow use of special device files / disallow them\n" \ |
2665 | " [no]exec Allow use of executable files / disallow them\n" \ | 2666 | " [no]exec Allow use of executable files / disallow them\n" \ |
2666 | " [no]suid Allow set-user-id-root programs / disallow them\n" \ | 2667 | " [no]suid Allow set-user-id-root programs / disallow them\n" \ |
diff --git a/util-linux/mount.c b/util-linux/mount.c index 2288e2c7f..4cc1d4bee 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -137,6 +137,8 @@ static const int32_t mount_options[] = { | |||
137 | /* "nodiratime" */ MS_NODIRATIME, | 137 | /* "nodiratime" */ MS_NODIRATIME, |
138 | /* "mand" */ MS_MANDLOCK, | 138 | /* "mand" */ MS_MANDLOCK, |
139 | /* "nomand" */ ~MS_MANDLOCK, | 139 | /* "nomand" */ ~MS_MANDLOCK, |
140 | /* "relatime" */ MS_RELATIME, | ||
141 | /* "norelatime" */ ~MS_RELATIME, | ||
140 | /* "loud" */ ~MS_SILENT, | 142 | /* "loud" */ ~MS_SILENT, |
141 | 143 | ||
142 | // action flags | 144 | // action flags |
@@ -189,6 +191,8 @@ static const char mount_option_str[] = | |||
189 | "nodiratime" "\0" | 191 | "nodiratime" "\0" |
190 | "mand" "\0" | 192 | "mand" "\0" |
191 | "nomand" "\0" | 193 | "nomand" "\0" |
194 | "relatime" "\0" | ||
195 | "norelatime" "\0" | ||
192 | "loud" "\0" | 196 | "loud" "\0" |
193 | 197 | ||
194 | // action flags | 198 | // action flags |