зеркало из https://github.com/github/ruby.git
atime may not updated unless strictatime is set on macOS Catalina
Cited from mount(8): ``` strictatime Always update the file access time when reading from a file. Without this option the filesystem may default to a less strict update mode, where some access time updates are skipped for performance reasons. This option could be ignored if it is not supported by the filesystem. ```
This commit is contained in:
Родитель
92df7d98b6
Коммит
6333020fc9
|
@ -89,6 +89,9 @@ get_noatime_p(VALUE self, VALUE str)
|
|||
rb_sys_fail_str(str);
|
||||
}
|
||||
# ifdef HAVE_STRUCT_STATFS_F_FLAGS
|
||||
# ifdef MNT_STRICTATIME
|
||||
if (!(st.f_flags & MNT_STRICTATIME)) return Qtrue;
|
||||
# endif
|
||||
# ifdef MNT_NOATIME
|
||||
return st.f_flags & MNT_NOATIME ? Qtrue : Qfalse;
|
||||
# elif defined(ST_NOATIME)
|
||||
|
|
Загрузка…
Ссылка в новой задаче