Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa/workunits/rbd/copy.sh: explicitly choose the image format #3806

Merged
merged 1 commit into from Feb 26, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions qa/workunits/rbd/copy.sh
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