HomeFreeBSD

linux: zfs: ctldir: set [amc]time to snapshot's creation property

Description

linux: zfs: ctldir: set [amc]time to snapshot's creation property

If looking up a snapdir inode failed, hold pool config – hold the
snapshot – get its creation property – release it – release it,
then use that as the [amc]time in the allocated inode. If that
fails then fall back to current time. No performance impact since
this is only done when allocating a new snapdir inode.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #15110
Closes #15117

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Aug 1 2023, 3:50 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 2 2023, 3:53 PM
Parents
rGb3c1807d776c: readmmap.c: fix building with MUSL libc
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGbd1eab16ebd0: linux: zfs: ctldir: set [amc]time to snapshot's creation property (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Aug 2 2023, 3:53 PM