Date: Fri, 07 Oct 2022 17:15:10 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 266236] ZFS NFS : .zfs/snapshot : Stale file handle Message-ID: <bug-266236-3630-JML3f6V7LH@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-266236-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-266236-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266236 --- Comment #22 from florian.millet@laposte.net --- (In reply to Mark Johnston from comment #21) I tried this : diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c index cdd762dcbcbf..05d41d4e3b2a 100644 --- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c +++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c @@ -1845,7 +1845,8 @@ zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode= _t **vpp) return (SET_ERROR(EINVAL)); } - if (fidp->fid_len =3D=3D LONG_FID_LEN && (fid_gen > 1 || setgen != =3D 0)) { + if (fidp->fid_len =3D=3D LONG_FID_LEN && setgen !=3D 0) { + ZFS_EXIT(zfsvfs); dprintf("snapdir fid: fid_gen (%llu) and setgen (%llu)\n", (u_longlong_t)fid_gen, (u_longlong_t)setgen); return (SET_ERROR(EINVAL)); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266236-3630-JML3f6V7LH>