]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rbd/diff_continuous.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / qa / workunits / rbd / diff_continuous.sh
index 41e44125fdebfe3f922b6403c79a78db6511f29a..b8f7e8b7e137570c6c9d324f0286ef374a7e5dbb 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/bash -ex
+#!/usr/bin/env bash
+set -ex
 
 max=20
 size=1500
@@ -24,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
@@ -34,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