From 50e6b22b3a47b0aaa142dd782587d94d37a72df4 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 --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- src/mount.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e163be9af..bad50adcde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Added TIMESTAMPNS support for linux (#[1402](https://github.com/nix-rust/nix/pull/1402)) - Added `sendfile64` (#[1439](https://github.com/nix-rust/nix/pull/1439)) +- Added `MS_LAZYTIME` to `MsFlags` + (#[1437](https://github.com/nix-rust/nix/pull/1437)) ### Changed - Made `forkpty` unsafe, like `fork` diff --git a/Cargo.toml b/Cargo.toml index 9a3aada904..a2aa41ffb6 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;