From 092021ba39bd066a1f7dc0c733a5799706635cca Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Thu, 20 Apr 2023 08:59:38 +0000 Subject: [PATCH] FreeBSD: add missing vn state transition for .zfs Signed-off-by: Mateusz Guzik Closes #14774 --- module/os/freebsd/zfs/zfs_ctldir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/os/freebsd/zfs/zfs_ctldir.c b/module/os/freebsd/zfs/zfs_ctldir.c index 6e49fff9a1..ceaa63a094 100644 --- a/module/os/freebsd/zfs/zfs_ctldir.c +++ b/module/os/freebsd/zfs/zfs_ctldir.c @@ -204,6 +204,10 @@ sfs_vgetx(struct mount *mp, int flags, uint64_t parent_id, uint64_t id, return (error); } +#if __FreeBSD_version >= 1400077 + vn_set_state(vp, VSTATE_CONSTRUCTED); +#endif + *vpp = vp; return (0); }