]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa:rbd/workunits : Replace `rbd bench-write` with `rbd bench --io-type write` 26168/head
authorShyukri Shyukriev <shshyukriev@suse.com>
Mon, 28 Jan 2019 12:24:54 +0000 (14:24 +0200)
committerShyukri Shyukriev <shshyukriev@suse.com>
Mon, 28 Jan 2019 12:24:54 +0000 (14:24 +0200)
Signed-off-by: Shyukri Shyukriev <shshyukriev@suse.com>
qa/workunits/rbd/diff.sh
qa/workunits/rbd/diff_continuous.sh
qa/workunits/rbd/journal.sh

index 73a7290a18b021f6e68a0ef7c726dee43abd9c8f..fbd6e06426d1aff65be77e2a8d4bbbba651192e1 100755 (executable)
@@ -14,14 +14,14 @@ function cleanup() {
 cleanup
 
 rbd create foo --size 1000
-rbd bench-write foo --io-size 4096 --io-threads 5 --io-total 4096000 --io-pattern rand
+rbd bench --io-type write foo --io-size 4096 --io-threads 5 --io-total 4096000 --io-pattern rand
 
 #rbd cp foo foo.copy
 rbd create foo.copy --size 1000
 rbd export-diff foo - | rbd import-diff - foo.copy
 
 rbd snap create foo --snap=two
-rbd bench-write foo --io-size 4096 --io-threads 5 --io-total 4096000 --io-pattern rand
+rbd bench --io-type write foo --io-size 4096 --io-threads 5 --io-total 4096000 --io-pattern rand
 rbd snap create foo --snap=three
 rbd snap create foo.copy --snap=two
 
index d9cd8efdad0a247bfc5e8bc8b02b0cda225f7729..b8f7e8b7e137570c6c9d324f0286ef374a7e5dbb 100755 (executable)
@@ -25,7 +25,7 @@ trap cleanup EXIT
 
 # start from a clone
 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 bench --io-type 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 --stripe-count 4 --stripe-unit 262144
@@ -35,7 +35,7 @@ rbd create $dst --size $size --image-format 2 --order 19
 for s in `seq 1 $max`; do
     rbd snap create $src --snap=snap$s
     rbd export-diff $src@snap$s - $lastsnap | rbd import-diff - $dst  &
-    rbd bench-write $src --io-size $iosize --io-threads $iothreads --io-total $iototal --io-pattern rand  &
+    rbd bench --io-type write $src --io-size $iosize --io-threads $iothreads --io-total $iototal --io-pattern rand  &
     wait
     lastsnap="--from-snap snap$s"
 done
index d35ea189a8404f4f9281dd56f3282f7f779600b8..ba89e75c92641b2a113a65fc800b5ad558fb4e7c 100755 (executable)
@@ -70,7 +70,7 @@ test_rbd_journal()
 
     local count=10
     save_commit_position ${journal}
-    rbd bench-write ${image} --io-size 4096 --io-threads 1 \
+    rbd bench --io-type write ${image} --io-size 4096 --io-threads 1 \
        --io-total $((4096 * count)) --io-pattern seq
     rbd journal status --image ${image} | fgrep "tid=$((count - 1))"
     restore_commit_position ${journal}