Skip to content

Commit

Permalink
Merge #1437
Browse files Browse the repository at this point in the history
1437: Add MS_LAZYTIME flag r=asomers a=ManaSugi

MS_LAZYTIME (since Linux 4.0) reduces on-disk updates of inode
timestamps (atime, mtime, ctime) by maintaining these changes only in memory.

MS_LAZYTIME is available from `libc` v0.2.95.

Signed-off-by: Manabu Sugimoto <[email protected]>

Co-authored-by: Manabu Sugimoto <[email protected]>
  • Loading branch information
bors[bot] and ManaSugi authored May 31, 2021
2 parents 892daf1 + 50e6b22 commit a55dd45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ libc_bitflags!(
MS_KERNMOUNT;
MS_I_VERSION;
MS_STRICTATIME;
MS_LAZYTIME;
MS_ACTIVE;
MS_NOUSER;
MS_RMT_MASK;
Expand Down

0 comments on commit a55dd45

Please sign in to comment.