btrfs-progs: tests: detect send stream version in misc/053

The encoded stream is supported since protocol version 2, detect
support.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2022-09-15 20:14:38 +02:00
parent 7d06a7e561
commit 20496884a9

View File

@ -11,6 +11,11 @@ check_prereq btrfs
setup_root_helper
prepare_test_dev
if grep -q '1$' "/sys/fs/btrfs/features/send_stream_version"; then
_not_run "kernel does not support send stream >1"
exit
fi
here=`pwd`
# assumes the filesystem exists, and does mount, write, snapshot, send, unmount