]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable 9721/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:22:53 +0000 (16:22 +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 d139d080dc1bd53698fe203b34871268b80794cd..bbc12551d9ecd61598e566a16a1d7831aa702ad1 100755 (executable)
@@ -137,7 +137,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 -