From: Mykola Golub Date: Tue, 14 Jun 2016 12:28:06 +0000 (+0300) Subject: qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable X-Git-Tag: v0.94.8~49^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9722%2Fhead;p=ceph.git qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable Fixes: http://tracker.ceph.com/issues/16289 Signed-off-by: Mykola Golub (cherry picked from commit 3048d3c7ce800a6174c54946b838e4e4079ec609) --- diff --git a/qa/workunits/rbd/import_export.sh b/qa/workunits/rbd/import_export.sh index d3d164ddfbd0..ac58c583c270 100755 --- a/qa/workunits/rbd/import_export.sh +++ b/qa/workunits/rbd/import_export.sh @@ -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 -