]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
freebsd: add ifdefs around legacy ioctl support
authorBrooks Davis <brooks@one-eyed-alien.net>
Thu, 27 Oct 2022 21:45:44 +0000 (22:45 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Nov 2022 23:55:26 +0000 (15:55 -0800)
commit20b867f5f716fedab675f5eac395e7e1ea54572d
treea3d54a1e59c29651ae77ca71b93fb9b81e455f32
parent6c89cffc2cccbca82314bf276d31512f9dc4f6ec
freebsd: add ifdefs around legacy ioctl support

Require that ZFS_LEGACY_SUPPORT be defined for legacy ioctl support to
be built.  For now, define it in zfs_ioctl_compat.h so support is always
built.  This will allow systems that need never support pre-openzfs
tools a mechanism to remove support at build time.  This code should
be removed once the need for tool compatability is gone.

No functional change at this time.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
Closes #14127
include/os/freebsd/zfs/sys/zfs_ioctl_compat.h
lib/libzfs_core/os/freebsd/libzfs_core_ioctl.c
lib/libzpool/util.c
module/os/freebsd/zfs/kmod_core.c
module/os/freebsd/zfs/zfs_ioctl_compat.c