Page MenuHomeFreeBSD

mount: document atime option
ClosedPublic

Authored by emaste on Jan 24 2024, 4:33 PM.
Tags
None
Referenced Files
F154483502: D43580.id133331.diff
Tue, Apr 28, 5:39 PM
F154481906: D43580.id133331.diff
Tue, Apr 28, 5:32 PM
F154436977: D43580.diff
Tue, Apr 28, 1:30 PM
Unknown Object (File)
Mon, Apr 27, 12:55 PM
Unknown Object (File)
Sat, Apr 25, 4:01 PM
Unknown Object (File)
Wed, Apr 22, 6:44 AM
Unknown Object (File)
Sun, Apr 19, 11:21 AM
Unknown Object (File)
Tue, Apr 14, 12:20 PM
Subscribers

Details

Summary

atime is enabled by default, but may be specified explicitly so that any
future change in the default would not have an effect on a given mount.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.

I was already pretty confident that nmount() has been accepting atime for a long time. I just checked to be sure, and it's effectively the case.

In addition to a possible default value change (possibly controlled by a sysctl knob), using atime is valuable when /etc/fstab specifies noatime for some filesystem and one wants to upgrade it to maintain access times while in use (e.g., via mount -u -o atime).

This revision is now accepted and ready to land.Jan 24 2024, 4:54 PM

Given this I also assume one cat specify "atime" in /etc/fstab?

Given this I also assume one cat specify "atime" in /etc/fstab?

Yep - I was looking to add it there too, but it seems there isn't a list and it's just by reference to mount.8.

This revision was automatically updated to reflect the committed changes.