]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: rbd/diff_continuous.sh: use non-standard striping
authorSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 21:13:46 +0000 (14:13 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 06:32:41 +0000 (23:32 -0700)
Exercise the striping arithmetic by using non-standard striping that
varies between the parent and child.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/rbd/diff_continuous.sh

index 6b2142d35a4a85ecfeae6ac8b04bcf94f4635537..41e44125fdebfe3f922b6403c79a78db6511f29a 100755 (executable)
@@ -23,13 +23,12 @@ function cleanup() {
 trap cleanup EXIT
 
 # start from a clone
-rbd create $parent --size $size --image-format 2
+rbd create $parent --size $size --image-format 2 --stripe-count 8 --stripe-unit 65536
 rbd bench-write $parent --io-size $iosize --io-threads $iothreads --io-total $iototal --io-pattern rand 
 rbd snap create $parent --snap parent
 rbd snap protect $parent --snap parent
-rbd clone $parent@parent $src
-#rbd create $src --size $size --format 2
-rbd create $dst --size $size --image-format 2
+rbd clone $parent@parent $src --stripe-count 4 --stripe-unit 262144
+rbd create $dst --size $size --image-format 2 --order 19
 
 # mirror for a while
 for s in `seq 1 $max`; do