]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: rbd/map-snapshot-io.sh: chown rbd device stuff
authorSage Weil <sage@inktank.com>
Fri, 15 Feb 2013 21:57:47 +0000 (13:57 -0800)
committerSage Weil <sage@inktank.com>
Fri, 15 Feb 2013 21:57:47 +0000 (13:57 -0800)
This is fugly, but sudo -E doesn't work.  Fix this after we are installing
debs and the path doesn't matter anymore!

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/rbd/map-snapshot-io.sh

index 6edcd4db723b5051245288ff60429be78ff3261c..41220c48356ff911ecfad85df7f87b0d44f1bef2 100755 (executable)
@@ -3,6 +3,10 @@ set -e
 
 # http://tracker.ceph.com/issues/3964
 
+[ -d /sys/bus/rbd ] || sudo modprobe rbd
+sudo chown ubuntu /sys/bus/rbd/add
+sudo chown ubuntu /sys/bus/rbd/remove
+
 rbd create image -s 100
 rbd map image
 udevadm settle  # note: newer versions of rbd do this for you.