Since linux 2.6.30, filesystems are mounted with "relatime" by default. In this discussion, Ingo Molnar says he has added the CONFIG_DEFAULT_RELATIME
kernel option, which:
makes 'norelatime' the default for all mounts without an extra kernel
boot option.
I don't really get it, I wonder if that means that without CONFIG_DEFAULT_RELATIME
in .config
, a kernel will not use relatime as a default mount option?
How can one enable or disable CONFIG_DEFAULT_RELATIME
in make menuconfig
? (I don't find anything related to relatime.)
And finally, I can't even find CONFIG_DEFAULT_RELATIME
in the kernel sources.
Can someone enlighten me?
Best Answer
Ingo Molnar proposed a patch, but this patch wasn't accepted into the kernel tree. Linus Torvalds made
relatime
the default setting in 2.6.30, unconditionally, and this is still true in 3.0. If you want relatime to default off in the kernel, you need to apply Ingo Molnar's patch in your copy of the source.