]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: bench-write is part of exclusive option test
authorMykola Golub <mgolub@suse.com>
Mon, 25 Dec 2017 11:22:59 +0000 (13:22 +0200)
committerJason Dillaman <dillaman@redhat.com>
Thu, 10 Oct 2019 22:53:50 +0000 (18:53 -0400)
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 47e38ca1b9f748e2f2ce1c035cd3f982d68eb492)

qa/workunits/rbd/rbd-nbd.sh

index 524f8bd3fc250c2e926a4dd7973346f41c68d16c..c8bdc51475c4ab8f65c0913ded2a6fe06a6158c7 100755 (executable)
@@ -169,6 +169,8 @@ _sudo dd if=${DATA} of=${DEV} bs=1M oflag=direct
 expect_false timeout 10 \
        rbd bench ${IMAGE} --io-type write --io-size=1024 --io-total=1024
 _sudo rbd-nbd unmap ${DEV}
+DEV=
+rbd bench ${IMAGE} --io-type write --io-size=1024 --io-total=1024
 
 # auto unmap test
 DEV=`_sudo rbd-nbd map ${POOL}/${IMAGE}`
@@ -183,7 +185,4 @@ for i in `seq 10`; do
 done
 rbd-nbd list-mapped | expect_false grep "^${PID} *${POOL} *${IMAGE}"
 
-DEV=
-rbd bench ${IMAGE} --io-type write --io-size=1024 --io-total=1024
-
 echo OK