]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd image_read.sh: disable exclusive locking
authorJason Dillaman <dillaman@redhat.com>
Thu, 22 Jan 2015 05:44:08 +0000 (00:44 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 22 Jan 2015 21:03:40 +0000 (13:03 -0800)
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>
qa/workunits/rbd/image_read.sh

index d96a3c7ae8eb0376087b4da3131330997ed2d354..24fcea2a327f39ae16260fc6a1a01b84e500ebf5 100755 (executable)
@@ -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() {