HomeFreeBSD

makefs: Honor -T timestamps when creating images from mtree manifests

Description

makefs: Honor -T timestamps when creating images from mtree manifests

makefs backends rely on the fsnode structure to derive most
of the information about the underlying filesystem objects.
Depending on how the image is built, the fsnode structures
are initialized in the walk_dir or read_mtree functions.
However, read_mtree fails to take timestamps passed by -T into account,
leading to nonreproducible images in backends that do not check for -T.
Fix this and make -T backend-agnostic by adding an appropriate check
in read_mtree_keywords while making sure that mtree entries can
still override -T timestamps.

PR: 285630
Sponsored by: Klara, Inc.
Sponsored by: The FreeBSD Foundation
Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D49531

Details

Provenance
bnovkovAuthored on Mar 24 2025, 3:47 PM
Reviewer
markj
Differential Revision
D49531: makefs: Honor -T timestamps when creating images from mtree manifests
Parents
rGc8ffb90b1dd3: Revert "vm_page: drop mpred from grab_valid_iter()"
Branches
Unknown
Tags
Unknown