]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
t_snapshot_deleted_subvolume: add check for BTRFS_IOC_SNAP_DESTROY_V2
authorYang Xu <xuyang2018.jy@fujitsu.com>
Thu, 1 Feb 2024 04:23:48 +0000 (23:23 -0500)
committerZorro Lang <zlang@kernel.org>
Fri, 9 Feb 2024 05:27:17 +0000 (13:27 +0800)
commit6b0efdc02753e3313949aa43cf340707ee41e53f
treefce386054b1606ad82cf4643af794febbfcceb24
parentd2c077611de7036acbfd10d19d8dbd0caf1ced24
t_snapshot_deleted_subvolume: add check for BTRFS_IOC_SNAP_DESTROY_V2

On some platform, struct btrfs_ioctl_vol_args_v2 is defined, but the
macros BTRFS_IOC_SNAP_DESTROY_V2 is not defined. This will cause
compile error. Add check for BTRFS_IOC_SNAP_DESTROY_V2 to solve this
problem.

BTRFS_IOC_SNAP_CREATE_V2 and BTRFS_IOC_SUBVOL_CREATE_V2 were
introduced together with struct btrfs_ioctl_vol_args_v2 by the
commit 55e301fd57a6 ("Btrfs: move fs/btrfs/ioctl.h to
include/uapi/linux/btrfs.h"). So there is no need to check them.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
configure.ac
src/t_snapshot_deleted_subvolume.c