]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: merge_diff shouldn't attempt to use striping v2 7041/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 17:54:47 +0000 (12:54 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 23 Dec 2015 17:54:47 +0000 (12:54 -0500)
Fixes: #14165
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
qa/workunits/rbd/merge_diff.sh

index 87486066b07951f71ff755cfd076410229722c60..0b6643dfa54762b8d2e500d224a6c231bcfc3eca 100755 (executable)
@@ -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