From 1dda6559383209d96d303587391193e6691261d3 Mon Sep 17 00:00:00 2001 From: Manabu Sugimoto Date: Wed, 26 May 2021 15:06:58 +0900 Subject: [PATCH] Add MS_LAZYTIME flag MS_LAZYTIME (since Linux 4.0) reduces on-disk updates of inode timestamps (atime, mtime, ctime) by maintaining these changes only in memory. Signed-off-by: Manabu Sugimoto --- Cargo.toml | 2 +- src/mount.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f5f6dd893b..113102e28a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ targets = [ ] [dependencies] -libc = { version = "0.2.93", features = [ "extra_traits" ] } +libc = { version = "0.2.95", features = [ "extra_traits" ] } bitflags = "1.1" cfg-if = "1.0" diff --git a/src/mount.rs b/src/mount.rs index 2c54761e2b..edb8afbd71 100644 --- a/src/mount.rs +++ b/src/mount.rs @@ -38,6 +38,7 @@ libc_bitflags!( MS_KERNMOUNT; MS_I_VERSION; MS_STRICTATIME; + MS_LAZYTIME; MS_ACTIVE; MS_NOUSER; MS_RMT_MASK;