From a6eadaefb7fd0dfe49850d750de4182cc802d797 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 22 Jan 2015 00:44:08 -0500 Subject: [PATCH] rbd image_read.sh: disable exclusive locking Until the kernel supports RBD exclusive locking, this test has been updated to create shared images (exclusive locking disabled). Fixes: #10613 Signed-off-by: Jason Dillaman Reviewed-by: Josh Durgin --- qa/workunits/rbd/image_read.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qa/workunits/rbd/image_read.sh b/qa/workunits/rbd/image_read.sh index d96a3c7ae8e..24fcea2a327 100755 --- a/qa/workunits/rbd/image_read.sh +++ b/qa/workunits/rbd/image_read.sh @@ -336,7 +336,8 @@ function create_image() { fi rbd create "${image_name}" --image-format "${FORMAT}" \ - --size "${IMAGE_SIZE}" --order "${OBJECT_ORDER}" + --size "${IMAGE_SIZE}" --order "${OBJECT_ORDER}" \ + --image-shared } function destroy_image() { @@ -476,7 +477,8 @@ function create_snap_clone() { fi rbd snap protect "${image_snap}" - rbd clone --order "${clone_order}" "${image_snap}" "${clone_name}" + rbd clone --order "${clone_order}" --image-shared \ + "${image_snap}" "${clone_name}" } function destroy_snap_clone() {