From: Jason Dillaman Date: Wed, 23 Dec 2015 17:54:47 +0000 (-0500) Subject: qa/workunits: merge_diff shouldn't attempt to use striping v2 X-Git-Tag: v10.0.3~172^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e095dedfa5ef5d597078d92651ec4e09af6da08;p=ceph.git qa/workunits: merge_diff shouldn't attempt to use striping v2 Fixes: #14165 Signed-off-by: Jason Dillaman --- diff --git a/qa/workunits/rbd/merge_diff.sh b/qa/workunits/rbd/merge_diff.sh index 87486066b079..0b6643dfa547 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