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 <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
Jason Dillaman 2015-01-22 00:44:08 -05:00 committed by Josh Durgin
parent 4d3b49e9d6
commit a6eadaefb7

View File

@ -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() {