Page MenuHomeFreeBSD

cd9660: Adjust parsing of timestamps in the extended atttributes record
ClosedPublic

Authored by jhb on Mon, Jun 22, 5:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 16, 12:29 AM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Tue, Jul 14, 8:09 PM
Unknown Object (File)
Tue, Jul 14, 11:05 AM
Unknown Object (File)
Sat, Jul 4, 9:46 AM
Unknown Object (File)
Thu, Jul 2, 7:49 PM
Unknown Object (File)
Thu, Jul 2, 6:18 PM
Subscribers

Details

Summary

The extended attribute record includes four different timestamps: file
creation, file modification, file expiration, and file effective date.
Only the first two are meaningful for stat(2). The latter two (if
handled) would presumably affect if a file is visible for not.

Previously, the logic here was a bit contorted and made use of the
effective time. It also seemed to treat the creation time as a change
time timestamp.

Instead, simplify the logic such that the modification time is set to
either the modification time (if present), or the creation time. The
access and change times are then set to the modification time.

NB: This is not used if RockRidge extensions are present, and makefs
does not generate the extended attributes record.

Diff Detail

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