summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-05-30 10:10:16 -0500
committerAlex Elder <elder@inktank.com>2013-05-30 10:10:16 -0500
commitf40256878d97fe641c1db9b0e8056304bd14aec4 (patch)
tree181eada8451cb0480f8884b0bf0380cb1396196e
parentc410f032e5f234604bac12f198165af7299bc002 (diff)
downloadceph-f40256878d97fe641c1db9b0e8056304bd14aec4.tar.gz
rbd/concurrent.sh: probe rbd module at start
There's no guarantee the rbd module is loaded when this script is run, so add a line that loads it if necessary. Signed-off-by: Alex Elder <elder@inktank.com>
-rwxr-xr-xqa/workunits/rbd/concurrent.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/workunits/rbd/concurrent.sh b/qa/workunits/rbd/concurrent.sh
index 4049535f3e0..ceb4563567f 100755
--- a/qa/workunits/rbd/concurrent.sh
+++ b/qa/workunits/rbd/concurrent.sh
@@ -74,6 +74,8 @@ function setup() {
NAMES_DIR=$(mktemp -d /tmp/image_names.XXXXXX)
SOURCE_DATA=$(mktemp /tmp/source_data.XXXXXX)
+ [ -d /sys/bus/rbd ] || sudo modprobe rbd
+
# This assumes it's easier to read a file than generate
# random data. Use busybox because it is a big executable.
dd if="/bin/busybox" of="{SOURCE_DATA}" bs=2048 count=66 \