]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: relatime allows equality
authorStephen Kitt <steve@sk2.org>
Sat, 25 Mar 2023 08:30:22 +0000 (09:30 +0100)
committerStephen Kitt <steve@sk2.org>
Sat, 25 Mar 2023 08:30:22 +0000 (09:30 +0100)
relatime also updates atime if the previous atime is equal to one or
both of the ctime and mtime; a non-strict interpretation of "earlier
than" allows this, but for clarity, this makes it explicit.

Pointed out by "epiii2" and "ctrl-alt-delor" in
https://unix.stackexchange.com/q/740862/86440.

Signed-off-by: Stephen Kitt <steve@sk2.org>
sys-utils/mount.8.adoc

index 127138148d015585594aa11db8c51bd7f9d13e19..44146c08142b4316c5745562572a054425082fc6 100644 (file)
@@ -570,7 +570,7 @@ The filesystem resides on a device that requires network access (used to prevent
 Do not report errors for this device if it does not exist.
 
 *relatime*::
-Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time. (Similar to *noatime*, but it doesn't break *mutt*(1) or other applications that need to know if a file has been read since the last time it was modified.)
+Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than or equal to the current modify or change time. (Similar to *noatime*, but it doesn't break *mutt*(1) or other applications that need to know if a file has been read since the last time it was modified.)
 +
 Since Linux 2.6.30, the kernel defaults to the behavior provided by this option (unless *noatime* was specified), and the *strictatime* option is required to obtain traditional semantics. In addition, since Linux 2.6.30, the file's last access time is always updated if it is more than 1 day old.