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 <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #14788
This commit is contained in:
Mateusz Guzik 2023-04-25 01:15:42 +02:00 committed by Brian Behlendorf
parent f786232b2a
commit 07a2ba541d
1 changed files with 9 additions and 0 deletions

View File

@ -815,6 +815,9 @@ static struct vop_vector zfsctl_ops_root = {
.vop_default = &default_vnodeops, .vop_default = &default_vnodeops,
#if __FreeBSD_version >= 1300121 #if __FreeBSD_version >= 1300121
.vop_fplookup_vexec = VOP_EAGAIN, .vop_fplookup_vexec = VOP_EAGAIN,
#endif
#if __FreeBSD_version >= 1300139
.vop_fplookup_symlink = VOP_EAGAIN,
#endif #endif
.vop_open = zfsctl_common_open, .vop_open = zfsctl_common_open,
.vop_close = zfsctl_common_close, .vop_close = zfsctl_common_close,
@ -1141,6 +1144,9 @@ static struct vop_vector zfsctl_ops_snapdir = {
.vop_default = &default_vnodeops, .vop_default = &default_vnodeops,
#if __FreeBSD_version >= 1300121 #if __FreeBSD_version >= 1300121
.vop_fplookup_vexec = VOP_EAGAIN, .vop_fplookup_vexec = VOP_EAGAIN,
#endif
#if __FreeBSD_version >= 1300139
.vop_fplookup_symlink = VOP_EAGAIN,
#endif #endif
.vop_open = zfsctl_common_open, .vop_open = zfsctl_common_open,
.vop_close = zfsctl_common_close, .vop_close = zfsctl_common_close,
@ -1248,6 +1254,9 @@ static struct vop_vector zfsctl_ops_snapshot = {
.vop_default = NULL, /* ensure very restricted access */ .vop_default = NULL, /* ensure very restricted access */
#if __FreeBSD_version >= 1300121 #if __FreeBSD_version >= 1300121
.vop_fplookup_vexec = VOP_EAGAIN, .vop_fplookup_vexec = VOP_EAGAIN,
#endif
#if __FreeBSD_version >= 1300139
.vop_fplookup_symlink = VOP_EAGAIN,
#endif #endif
.vop_open = zfsctl_common_open, .vop_open = zfsctl_common_open,
.vop_close = zfsctl_common_close, .vop_close = zfsctl_common_close,