From 88b8777159f69237ca59b31e8c246c567e836c68 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Thu, 20 Apr 2023 08:59:38 +0000 Subject: 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(+) (limited to 'module/os') diff --git a/module/os/freebsd/zfs/zfs_ctldir.c b/module/os/freebsd/zfs/zfs_ctldir.c index d00efa44f..8ba5e0b24 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); } -- cgit v1.2.3