mount: add -o nostrictatime and -o [no]lazytime
function old new delta mount_option_str 345 379 +34 mount_options 176 188 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 46/0) Total: 46 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b1eedfcfa1
commit
696c38ddca
@ -216,12 +216,16 @@
|
|||||||
#ifndef MS_SHARED
|
#ifndef MS_SHARED
|
||||||
# define MS_SHARED (1 << 20)
|
# define MS_SHARED (1 << 20)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MS_RELATIME
|
#ifndef MS_RELATIME
|
||||||
# define MS_RELATIME (1 << 21)
|
# define MS_RELATIME (1 << 21)
|
||||||
#endif
|
#endif
|
||||||
#ifndef MS_STRICTATIME
|
#ifndef MS_STRICTATIME
|
||||||
# define MS_STRICTATIME (1 << 24)
|
# define MS_STRICTATIME (1 << 24)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MS_LAZYTIME
|
||||||
|
# define MS_LAZYTIME (1 << 25)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Any ~MS_FOO value has this bit set: */
|
/* Any ~MS_FOO value has this bit set: */
|
||||||
#define BB_MS_INVERTED_VALUE (1u << 31)
|
#define BB_MS_INVERTED_VALUE (1u << 31)
|
||||||
@ -358,15 +362,18 @@ static const int32_t mount_options[] ALIGN4 = {
|
|||||||
/* "noatime" */ MS_NOATIME,
|
/* "noatime" */ MS_NOATIME,
|
||||||
/* "diratime" */ ~MS_NODIRATIME,
|
/* "diratime" */ ~MS_NODIRATIME,
|
||||||
/* "nodiratime" */ MS_NODIRATIME,
|
/* "nodiratime" */ MS_NODIRATIME,
|
||||||
/* "mand" */ MS_MANDLOCK,
|
|
||||||
/* "nomand" */ ~MS_MANDLOCK,
|
|
||||||
/* "relatime" */ MS_RELATIME,
|
/* "relatime" */ MS_RELATIME,
|
||||||
/* "norelatime" */ ~MS_RELATIME,
|
/* "norelatime" */ ~MS_RELATIME,
|
||||||
/* "strictatime" */ MS_STRICTATIME,
|
/* "strictatime" */ MS_STRICTATIME,
|
||||||
|
/* "nostrictatime"*/ ~MS_STRICTATIME,
|
||||||
|
/* "lazytime" */ MS_LAZYTIME,
|
||||||
|
/* "nolazytime" */ ~MS_LAZYTIME,
|
||||||
|
/* "mand" */ MS_MANDLOCK,
|
||||||
|
/* "nomand" */ ~MS_MANDLOCK,
|
||||||
/* "loud" */ ~MS_SILENT,
|
/* "loud" */ ~MS_SILENT,
|
||||||
/* "rbind" */ MS_BIND|MS_RECURSIVE,
|
|
||||||
|
|
||||||
// action flags
|
// action flags
|
||||||
|
/* "rbind" */ MS_BIND|MS_RECURSIVE,
|
||||||
/* "union" */ MS_UNION,
|
/* "union" */ MS_UNION,
|
||||||
/* "bind" */ MS_BIND,
|
/* "bind" */ MS_BIND,
|
||||||
/* "move" */ MS_MOVE,
|
/* "move" */ MS_MOVE,
|
||||||
@ -404,28 +411,31 @@ static const char mount_option_str[] ALIGN1 =
|
|||||||
)
|
)
|
||||||
IF_FEATURE_MOUNT_FLAGS(
|
IF_FEATURE_MOUNT_FLAGS(
|
||||||
// vfs flags
|
// vfs flags
|
||||||
"nosuid\0"
|
"nosuid" "\0"
|
||||||
"suid\0"
|
"suid" "\0"
|
||||||
"dev\0"
|
"dev" "\0"
|
||||||
"nodev\0"
|
"nodev" "\0"
|
||||||
"exec\0"
|
"exec" "\0"
|
||||||
"noexec\0"
|
"noexec" "\0"
|
||||||
"sync\0"
|
"sync" "\0"
|
||||||
"dirsync\0"
|
"dirsync" "\0"
|
||||||
"async\0"
|
"async" "\0"
|
||||||
"atime\0"
|
"atime" "\0"
|
||||||
"noatime\0"
|
"noatime" "\0"
|
||||||
"diratime\0"
|
"diratime" "\0"
|
||||||
"nodiratime\0"
|
"nodiratime" "\0"
|
||||||
"mand\0"
|
"relatime" "\0"
|
||||||
"nomand\0"
|
"norelatime" "\0"
|
||||||
"relatime\0"
|
"strictatime" "\0"
|
||||||
"norelatime\0"
|
"nostrictatime""\0"
|
||||||
"strictatime\0"
|
"lazytime" "\0"
|
||||||
"loud\0"
|
"nolazytime" "\0"
|
||||||
"rbind\0"
|
"mand" "\0"
|
||||||
|
"nomand" "\0"
|
||||||
|
"loud" "\0"
|
||||||
|
|
||||||
// action flags
|
// action flags
|
||||||
|
"rbind\0"
|
||||||
"union\0"
|
"union\0"
|
||||||
"bind\0"
|
"bind\0"
|
||||||
"move\0"
|
"move\0"
|
||||||
|
Loading…
Reference in New Issue
Block a user