Skip to content

Commit f87ecd9

Browse files
committed
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 <Manabu.Sugimoto@sony.com>
1 parent 708e528 commit f87ecd9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ MS_DIRSYNC
10981098
MS_INVALIDATE
10991099
MS_I_VERSION
11001100
MS_KERNMOUNT
1101+
MS_LAZYTIME
11011102
MS_MANDLOCK
11021103
MS_MGC_MSK
11031104
MS_MGC_VAL

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,7 @@ MS_BIND
11581158
MS_DIRSYNC
11591159
MS_I_VERSION
11601160
MS_KERNMOUNT
1161+
MS_LAZYTIME
11611162
MS_MANDLOCK
11621163
MS_MGC_MSK
11631164
MS_MGC_VAL

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ pub const MS_RELATIME: ::c_ulong = 0x200000;
602602
pub const MS_KERNMOUNT: ::c_ulong = 0x400000;
603603
pub const MS_I_VERSION: ::c_ulong = 0x800000;
604604
pub const MS_STRICTATIME: ::c_ulong = 0x1000000;
605+
pub const MS_LAZYTIME: ::c_ulong = 0x2000000;
605606
pub const MS_ACTIVE: ::c_ulong = 0x40000000;
606607
pub const MS_MGC_VAL: ::c_ulong = 0xc0ed0000;
607608
pub const MS_MGC_MSK: ::c_ulong = 0xffff0000;

0 commit comments

Comments
 (0)