问题原文
原帖链接 · 白川 マセル · CC BY-SA 3.0
Is there a way to disable the mtime of an filesystem?
There is an Filesystem independend noatime Option, but no "nomtime". Also in the Filesystem specific documentation for ext4 and/or btrfs i couldn't find this.
Does this exist?
已采纳解答
原帖链接 · Joshua Griffiths · CC BY-SA 3.0
There is no such option in the kernel.
include/linux/statfs.h:
#define ST_NOATIME 0x0400 /* do not update access times */
#define ST_NODIRATIME 0x0800 /* do not update directory access times */
#define ST_RELATIME 0x1000 /* update atime relative to mtime/ctime */
I cannot think of any functional purpose for this option other than for testing purposes (your use case).
Your options are:
- Patch the kernel to add this option
- Patch the client software to not react to modify time.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
