Skip to content

Commit 81a2b2e

Browse files
authored
FreeBSD: add missing vop_fplookup assignments
It became illegal to not have them as of 5f6df177758b9dff88e4b6069aeb2359e8b0c493 ("vfs: validate that vop vectors provide all or none fplookup vops") upstream. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Mateusz Guzik <[email protected]> Closes #14788
1 parent ff0e135 commit 81a2b2e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

module/os/freebsd/zfs/zfs_ctldir.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,9 @@ static struct vop_vector zfsctl_ops_root = {
801801
.vop_default = &default_vnodeops,
802802
#if __FreeBSD_version >= 1300121
803803
.vop_fplookup_vexec = VOP_EAGAIN,
804+
#endif
805+
#if __FreeBSD_version >= 1300139
806+
.vop_fplookup_symlink = VOP_EAGAIN,
804807
#endif
805808
.vop_open = zfsctl_common_open,
806809
.vop_close = zfsctl_common_close,
@@ -1129,6 +1132,9 @@ static struct vop_vector zfsctl_ops_snapdir = {
11291132
.vop_default = &default_vnodeops,
11301133
#if __FreeBSD_version >= 1300121
11311134
.vop_fplookup_vexec = VOP_EAGAIN,
1135+
#endif
1136+
#if __FreeBSD_version >= 1300139
1137+
.vop_fplookup_symlink = VOP_EAGAIN,
11321138
#endif
11331139
.vop_open = zfsctl_common_open,
11341140
.vop_close = zfsctl_common_close,
@@ -1236,6 +1242,9 @@ static struct vop_vector zfsctl_ops_snapshot = {
12361242
.vop_default = NULL, /* ensure very restricted access */
12371243
#if __FreeBSD_version >= 1300121
12381244
.vop_fplookup_vexec = VOP_EAGAIN,
1245+
#endif
1246+
#if __FreeBSD_version >= 1300139
1247+
.vop_fplookup_symlink = VOP_EAGAIN,
12391248
#endif
12401249
.vop_open = zfsctl_common_open,
12411250
.vop_close = zfsctl_common_close,

0 commit comments

Comments
 (0)