From 20496884a94dbf7e1917170c13fbac377df45bb8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 15 Sep 2022 20:14:38 +0200 Subject: [PATCH] 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 --- tests/misc-tests/053-receive-write-encoded/test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/misc-tests/053-receive-write-encoded/test.sh b/tests/misc-tests/053-receive-write-encoded/test.sh index 790c95eb..a3e97a73 100755 --- a/tests/misc-tests/053-receive-write-encoded/test.sh +++ b/tests/misc-tests/053-receive-write-encoded/test.sh @@ -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