summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-15 16:26:16 -0800
committerSage Weil <sage@inktank.com>2013-02-15 16:26:16 -0800
commit3f5c25279622ea59624ae689cd21e9d69c852c0c (patch)
treeef748191c00d13d16d3935b11ecaa19c77a9815c
parentbc74429c8b3a5c4dfe49505cf5e0f42de28bf0b4 (diff)
downloadceph-3f5c25279622ea59624ae689cd21e9d69c852c0c.tar.gz
qa: rbd/map-snapshat-io: unmap image when done
Signed-off-by: Sage Weil <sage@inktank.com>
-rwxr-xr-xqa/workunits/rbd/map-snapshot-io.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/workunits/rbd/map-snapshot-io.sh b/qa/workunits/rbd/map-snapshot-io.sh
index 41220c48356..1fb26523e92 100755
--- a/qa/workunits/rbd/map-snapshot-io.sh
+++ b/qa/workunits/rbd/map-snapshot-io.sh
@@ -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
+