summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@dreamhost.com>2011-10-21 13:25:48 -0700
committerJosh Durgin <josh.durgin@dreamhost.com>2011-10-24 15:32:47 -0700
commitf4aa69a8723cf8cb3427a90212eaef6de350a2ed (patch)
tree2238eda2f785ee849e7952243c9478d7d2b05014 /qa
parentafa34794c55b5cd250bfac819b2f5ed449a49faf (diff)
downloadceph-f4aa69a8723cf8cb3427a90212eaef6de350a2ed.tar.gz
workunit: check that rbd info returns the right size for snapshots
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Diffstat (limited to 'qa')
-rwxr-xr-xqa/workunits/rbd/copy.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/workunits/rbd/copy.sh b/qa/workunits/rbd/copy.sh
index c25708e52d0..b3c4915f094 100755
--- a/qa/workunits/rbd/copy.sh
+++ b/qa/workunits/rbd/copy.sh
@@ -23,6 +23,10 @@ rbd snap create testimg1 --snap=snap1
rbd resize testimg1 --size=128
rbd export testimg1 /tmp/img3
+# info
+rbd info testimg1 | grep 'size 128 MB'
+rbd info --snap=snap1 testimg1 | grep 'size 256 MB'
+
# make copies
rbd copy testimg1 --snap=snap1 testimg2
rbd copy testimg1 testimg3