Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FreeBSD: Fix a pair of bugs in zfs_fhtovp()
- Add a zfs_exit() call in an error path, otherwise a lock is leaked. - Remove the fid_gen > 1 check. That appears to be Linux-specific: zfsctl_snapdir_fid() sets fid_gen to 0 or 1 depending on whether the snapshot directory is mounted. On FreeBSD it fails, making snapshot dirs inaccessible via NFS. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Andriy Gapon <[email protected]> Signed-off-by: Mark Johnston <[email protected]> Fixes: 43dbf88 ("FreeBSD: vfsops: use setgen for error case") Closes #14001 Closes #13974
- Loading branch information