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?
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?
There is no such option in the kernel.
include/linux/statfs.h:
I cannot think of any functional purpose for this option other than for testing purposes (your use case).
Your options are:
I found that there is the
S_NOCMTIME
flag ininclude/linux/fs.h
:which seems to do what's needed. Apparently it's not exposed to users though, but there are examples of using it (just grep for it), so one should be able to hack a little patch for the according file system.
An actual use case would be avoiding inode updates when writing small chunks of data to a fixed-size circular buffer (e.g. to avoid needless erase cycles on NAND-based storage).