diff options
author | Karel Zak | 2015-03-30 12:43:45 +0200 |
---|---|---|
committer | Karel Zak | 2015-03-30 12:43:45 +0200 |
commit | 8c7f073aaeaad3ab9b1775447306776056bf50b8 (patch) | |
tree | 56b7a22576e8e45a7654122b034f2870574f8046 /libmount | |
parent | setarch: fix regression for sparc builds (diff) | |
download | kernel-qcow2-util-linux-8c7f073aaeaad3ab9b1775447306776056bf50b8.tar.gz kernel-qcow2-util-linux-8c7f073aaeaad3ab9b1775447306776056bf50b8.tar.xz kernel-qcow2-util-linux-8c7f073aaeaad3ab9b1775447306776056bf50b8.zip |
libmount: add support for MS_LAZYTIME
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r-- | libmount/src/libmount.h.in | 4 | ||||
-rw-r--r-- | libmount/src/optmap.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index 30dc06b69..2338cc604 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -832,6 +832,10 @@ extern int mnt_context_set_syscall_status(struct libmnt_context *cxt, int status #ifndef MS_STRICTATIME #define MS_STRICTATIME (1<<24) /* Always perform atime updates */ #endif +#ifndef MS_LAZYTIME +#define MS_LAZYTIME (1<<25) /* Update the on-disk [acm]times lazily */ +#endif + /* * Magic mount flag number. Had to be or-ed to the flag values. diff --git a/libmount/src/optmap.c b/libmount/src/optmap.c index 5b25b8f29..3ad77273e 100644 --- a/libmount/src/optmap.c +++ b/libmount/src/optmap.c @@ -113,6 +113,10 @@ static const struct libmnt_optmap linux_flags_map[] = { "strictatime", MS_STRICTATIME }, /* Strict atime semantics */ { "nostrictatime", MS_STRICTATIME, MNT_INVERT }, /* kernel default atime */ #endif +#ifdef MS_LAZYTIME + { "lazytime", MS_LAZYTIME }, /* Update {a,m,c}time on the in-memory inode only */ + { "nolazytime", MS_LAZYTIME, MNT_INVERT }, +#endif #ifdef MS_PROPAGATION { "unbindable", MS_UNBINDABLE, MNT_NOHLPS | MNT_NOMTAB }, /* Unbindable */ { "runbindable", MS_UNBINDABLE | MS_REC, MNT_NOHLPS | MNT_NOMTAB }, |