From 8e095dedfa5ef5d597078d92651ec4e09af6da08 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 23 Dec 2015 12:54:47 -0500 Subject: [PATCH] qa/workunits: merge_diff shouldn't attempt to use striping v2 Fixes: #14165 Signed-off-by: Jason Dillaman --- qa/workunits/rbd/merge_diff.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/workunits/rbd/merge_diff.sh b/qa/workunits/rbd/merge_diff.sh index 87486066b0795..0b6643dfa5476 100755 --- a/qa/workunits/rbd/merge_diff.sh +++ b/qa/workunits/rbd/merge_diff.sh @@ -30,7 +30,11 @@ function rebuild() clear_all echo Starting test $testno ((testno++)) - rbd create $gen --size 100 --object-size $1 --stripe-unit $2 --stripe-count $3 --image-format $4 + if [[ "$2" -lt "$1" ]] && [[ "$3" -gt "1" ]]; then + rbd create $gen --size 100 --object-size $1 --stripe-unit $2 --stripe-count $3 --image-format $4 + else + rbd create $gen --size 100 --object-size $1 --image-format $4 + fi rbd create $out --size 1 --object-size 524288 mkdir -p mnt diffs # lttng has atexit handlers that need to be fork/clone aware