]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: rbd/map-snapshat-io: unmap image when done
authorSage Weil <sage@inktank.com>
Sat, 16 Feb 2013 00:26:16 +0000 (16:26 -0800)
committerSage Weil <sage@inktank.com>
Sat, 16 Feb 2013 00:26:16 +0000 (16:26 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/rbd/map-snapshot-io.sh

index 41220c48356ff911ecfad85df7f87b0d44f1bef2..1fb26523e92184044e5fd6c7f601cf7d5dc484ea 100755 (executable)
@@ -15,5 +15,7 @@ rbd snap create image@s1
 dd if=/dev/zero of=/dev/rbd/rbd/image oflag=direct count=10   # used to fail
 rbd snap rm image@s1
 dd if=/dev/zero of=/dev/rbd/rbd/image oflag=direct count=10
+rbd unmap /dev/rbd/rbd/image
 
 echo OK
+