Page MenuHomeFreeBSD

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

Authored by jlduran on Jan 7 2026, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 5, 8:17 PM
Unknown Object (File)
Sat, Sep 5, 8:12 PM
Unknown Object (File)
Sat, Sep 5, 8:11 PM
Unknown Object (File)
Sat, Sep 5, 7:52 PM
Unknown Object (File)
Sat, Sep 5, 10:52 AM
Unknown Object (File)
Fri, Sep 4, 9:32 AM
Unknown Object (File)
Fri, Sep 4, 2:57 AM
Unknown Object (File)
Thu, Sep 3, 10:46 AM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable