]> git.proxmox.com Git - mirror_zfs.git/commit
linux: zfs: ctldir: set [amc]time to snapshot's creation property
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 1 Aug 2023 15:50:17 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Aug 2023 15:50:17 +0000 (08:50 -0700)
commita21ca18d4d2943667aa409a6dc2a9c8ad033e331
treedc235a8590e88f16124b7b2f2d4ef063bec92db5
parent6751634d77520793ec410b6886febb7e665fc175
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
module/os/linux/zfs/zfs_ctldir.c