From 5cd922ca31d2eb987992b2afcbd45d5d92aeac69 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Tue, 14 Jun 2016 15:28:06 +0300 Subject: [PATCH] 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) --- qa/workunits/rbd/import_export.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 - -- 2.47.3