mirror of
https://github.com/ceph/ceph
synced 2025-01-02 17:12:31 +00:00
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:
parent
4d3b49e9d6
commit
a6eadaefb7
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user