diff options
author | Boris Burkov <boris@bur.io> | 2024-03-13 16:46:29 -0700 |
---|---|---|
committer | Anand Jain <anand.jain@oracle.com> | 2024-03-20 22:32:52 +0800 |
commit | cb30473e15c92709d8dcf9bd955d64635cfd578a (patch) | |
tree | 72f7d34d608e1423a3855292d5792ffa9b129e5c | |
parent | 8e7f64fc6b5d9d57ef660b3df903c0fad0becd51 (diff) | |
download | xfstests-dev-cb30473e15c92709d8dcf9bd955d64635cfd578a.tar.gz |
btrfs/277: specify protocol version 3 for verity send
This test uses btrfs send with fs-verity which relies on protocol
version 3. The default in progs is version 2, so we need to explicitly
specify the protocol version. Note that the max protocol version in
progs is also currently broken (not properly gated by EXPERIMENTAL) so
that needs fixing as well.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
[ added _require_btrfs_send_version 3 ]
-rwxr-xr-x | tests/btrfs/277 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/btrfs/277 b/tests/btrfs/277 index f5684fde1b..5bb7ffabdd 100755 --- a/tests/btrfs/277 +++ b/tests/btrfs/277 @@ -29,6 +29,7 @@ _require_scratch_verity _require_fsverity_builtin_signatures _require_command "$SETCAP_PROG" setcap _require_command "$GETCAP_PROG" getcap +_require_btrfs_send_version 3 subv=$SCRATCH_MNT/subv fsv_file=$subv/file.fsv @@ -84,7 +85,7 @@ _test_send_verity() { echo "set subvolume read only" $BTRFS_UTIL_PROG property set $subv ro true echo "send subvolume" - $BTRFS_UTIL_PROG send $subv -f $stream -q >> $seqres.full + $BTRFS_UTIL_PROG send $subv -f $stream -q --proto=3 >> $seqres.full echo "blow away fs" _scratch_unmount |