Skip to content

Commit

Permalink
Merge pull request ceph#3806 from ceph/wip-10961
Browse files Browse the repository at this point in the history
qa/workunits/rbd/copy.sh: explicitly choose the image format

Reviewed-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Feb 26, 2015
2 parents a54864a + 3ec52da commit 4e6d885
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qa/workunits/rbd/copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ test_ls() {
echo "testing ls..."
remove_images

rbd create -s 1 test1
rbd create -s 1 test2
rbd create --image-format 1 -s 1 test1
rbd create --image-format 1 -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
Expand All @@ -120,8 +120,8 @@ test_ls() {
rbd rm test1
rbd rm test2

rbd create --new-format -s 1 test1
rbd create --new-format -s 1 test2
rbd create --image-format 2 -s 1 test1
rbd create --image-format 2 -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
Expand All @@ -132,7 +132,7 @@ test_ls() {
rbd rm test2

rbd create --new-format -s 1 test1
rbd create -s 1 test2
rbd create --image-format 1 -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
Expand Down Expand Up @@ -177,7 +177,7 @@ test_remove() {
# by removing some objects manually.

# remove with header missing (old format)
rbd create -s 1 test1
rbd create --image-format 1 -s 1 test1
rados rm -p rbd test1.rbd
rbd rm test1
rbd ls | wc -l | grep "^0$"
Expand Down

0 comments on commit 4e6d885

Please sign in to comment.