]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable 9722/head
authorMykola Golub <mgolub@mirantis.com>
Tue, 14 Jun 2016 12:28:06 +0000 (15:28 +0300)
committerMykola Golub <mgolub@mirantis.com>
Wed, 15 Jun 2016 13:33:59 +0000 (16:33 +0300)
Fixes: http://tracker.ceph.com/issues/16289
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 3048d3c7ce800a6174c54946b838e4e4079ec609)

qa/workunits/rbd/import_export.sh

index d3d164ddfbd051c29749dd7adca835a22a8bf72a..ac58c583c2708f6320db02baec1a4bf5a1a9b5d0 100755 (executable)
@@ -132,7 +132,7 @@ rbd rm sparse
 
 echo "zeros export to sparse file"
 #  Must be tricky to make image "by hand" ; import won't create a zero image
-rbd create sparse --size 4
+rbd create $RBD_CREATE_ARGS sparse --size 4
 prefix=$(rbd info sparse | grep block_name_prefix | awk '{print $NF;}')
 # drop in 0 object directly
 dd if=/dev/zero bs=4M count=1 | rados -p rbd put ${prefix}.000000000000 -