Skip to content

Commit

Permalink
workunits/rbd: allow creating images in different formats
Browse files Browse the repository at this point in the history
This will allow adding more arguments for testing combinations
of features in the future.

Signed-off-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Jun 10, 2012
1 parent a502630 commit 3d7925b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qa/workunits/rbd/copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dd if=/bin/ls of=/tmp/img1 bs=1k seek=10000
dd if=/bin/ln of=/tmp/img1 bs=1k seek=100000

# import, snapshot
rbd import /tmp/img1 testimg1
rbd import $RBD_CREATE_ARGS /tmp/img1 testimg1
rbd resize testimg1 --size=256
rbd export testimg1 /tmp/img2
rbd snap create testimg1 --snap=snap1
Expand Down
4 changes: 2 additions & 2 deletions qa/workunits/rbd/import_export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ dd if=/bin/grep of=/tmp/img bs=1k seek=1000000

rbd rm testimg || true

rbd import /tmp/img testimg
rbd import $RBD_CREATE_ARGS /tmp/img testimg
rbd export testimg /tmp/img2

cmp /tmp/img /tmp/img2

rm /tmp/img /tmp/img2

echo OK
echo OK

0 comments on commit 3d7925b

Please sign in to comment.