From: Josh Durgin Date: Fri, 21 Oct 2011 20:25:48 +0000 (-0700) Subject: workunit: check that rbd info returns the right size for snapshots X-Git-Tag: v0.38~57^2~3^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4aa69a8723cf8cb3427a90212eaef6de350a2ed;p=ceph.git workunit: check that rbd info returns the right size for snapshots Signed-off-by: Josh Durgin --- diff --git a/qa/workunits/rbd/copy.sh b/qa/workunits/rbd/copy.sh index c25708e52d02..b3c4915f0942 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