* [PATCH] xfstest/btrfs: check for matching kernel send stream ver 2
@ 2014-07-21 9:01 Anand Jain
0 siblings, 0 replies; only message in thread
From: Anand Jain @ 2014-07-21 9:01 UTC (permalink / raw)
To: fstests; +Cc: linux-btrfs, fdmanana, dsterba
The test case btrfs/049 is relevant to send stream version 2, and
needs kernel patches as well. So call _notrun if there isn't
matching kernel support as shown below
btrfs/047 [not run] Missing btrfs kernel patch for send stream version 2, skipped this test
Not run: btrfs/047
Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
common/rc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/common/rc b/common/rc
index 4a6511f..1c914bb 100644
--- a/common/rc
+++ b/common/rc
@@ -2223,6 +2223,11 @@ _require_btrfs_send_stream_version()
if [ $? -ne 0 ]; then
_notrun "Missing btrfs-progs send --stream-version command line option, skipped this test"
fi
+
+ # test if btrfs kernel supports send stream version 2
+ if [ ! -f /sys/fs/btrfs/send/stream_version ]; then
+ _notrun "Missing btrfs kernel patch for send stream version 2, skipped this test"
+ fi
}
_require_btrfs_mkfs_feature()
--
2.0.0.153.g79dcccc
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-21 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-21 9:01 [PATCH] xfstest/btrfs: check for matching kernel send stream ver 2 Anand Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).