]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd/concurrent.sh: probe rbd module at start
authorAlex Elder <elder@inktank.com>
Thu, 30 May 2013 15:10:16 +0000 (10:10 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 30 May 2013 15:10:16 +0000 (10:10 -0500)
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>
qa/workunits/rbd/concurrent.sh

index 4049535f3e0a4b8ca062ccbd38945e2aa4723e59..ceb4563567feae355be2f7952f161d9c852bc345 100755 (executable)
@@ -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 \