HomeFreeBSD

cd9660: Adjust parsing of timestamps in the extended atttributes record

Description

cd9660: Adjust parsing of timestamps in the extended atttributes record

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.

Differential Revision: https://reviews.freebsd.org/D57748

Details

Provenance
jhbAuthored on Jun 23 2026, 3:51 PM
Differential Revision
D57748: cd9660: Adjust parsing of timestamps in the extended atttributes record
Parents
rGc6eb9f16cf0e: pciconf: Minor cleanups in the config register methods
Branches
Unknown
Tags
Unknown