]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: fix _require_btrfs_send_version to detect btrfs-progs support
authorFilipe Manana <fdmanana@suse.com>
Fri, 12 Jul 2024 09:54:24 +0000 (10:54 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 12 Jul 2024 19:05:35 +0000 (03:05 +0800)
commitef59ba956bf85b845dbc4ece9cf2406156391c53
treeeddcdc4ac2de621d37fea930f4ca3fbcd555a5f2
parent98a6cdd648a3a3d079942fd56f9121cffa1921f9
btrfs: fix _require_btrfs_send_version to detect btrfs-progs support

Commit 199d0a992536df3702a0c4843d2a449d54f399c2 ("common/btrfs: introduce
_require_btrfs_send_version") turned _require_btrfs_send_v2 into a generic
helper to detect support for any send stream version, however it's only
working for detecting kernel support, it misses detecting the support from
btrfs-progs - it always checks only that it supports v2 (the send command
supports the --compressed-data option).

Fix that by verifying that btrfs-progs supports the requested version.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
common/btrfs