Page MenuHomeFreeBSD

makefs: Fix atime tests on MS-DOS (FAT) file systems
AcceptedPublic

Authored by jlduran on Jan 7 2026, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 11, 6:38 PM
Unknown Object (File)
Sun, Aug 9, 3:49 PM
Unknown Object (File)
Sat, Aug 8, 7:15 PM
Unknown Object (File)
Sat, Aug 8, 1:23 PM
Unknown Object (File)
Fri, Aug 7, 7:32 PM
Unknown Object (File)
Mon, Aug 3, 7:05 AM
Unknown Object (File)
Sun, Aug 2, 3:12 AM
Unknown Object (File)
Fri, Jul 31, 6:25 PM
Subscribers

Details

Reviewers
ngie
Group Reviewers
tests
Summary

On FAT file systems, access time has a resolution of 1 day, so it is
really the access date.

Strip the time component from the epoch timestamp in order to check the
access time.

Reference: https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69696
Build 66579: arc lint + arc unit