]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd/simple_1tb: add simple rbd read/write test on large image
authorSage Weil <sage@inktank.com>
Thu, 27 Jun 2013 02:34:27 +0000 (19:34 -0700)
committerSage Weil <sage@inktank.com>
Thu, 27 Jun 2013 03:41:58 +0000 (20:41 -0700)
Motivated by #5454.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/rbd/simple_1tb.sh [new file with mode: 0755]

diff --git a/qa/workunits/rbd/simple_1tb.sh b/qa/workunits/rbd/simple_1tb.sh
new file mode 100755 (executable)
index 0000000..29595ac
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh -ex
+
+[ -d /sys/bus/rbd ] || sudo modprobe rbd
+
+rbd create foo --size 1000000
+sudo rbd map foo
+sudo dd if=/dev/zero of=/dev/rbd/rbd/foo bs=1M
+sudo dd if=/dev/rbd/rbd/foo of=/dev/null bs=1M
+sudo rbd unmap foo
+rbd rm foo
+
+echo OK
+