]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
workunit: check that rbd info returns the right size for snapshots
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 21 Oct 2011 20:25:48 +0000 (13:25 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Mon, 24 Oct 2011 22:32:47 +0000 (15:32 -0700)
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
qa/workunits/rbd/copy.sh

index c25708e52d0288ee331d384ec727818916b6e176..b3c4915f0942b39e49f7d9c1ae3ed5dbc6926e3d 100755 (executable)
@@ -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