]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: add --nolockdep option
authorJason Dillaman <dillaman@redhat.com>
Thu, 9 Jun 2016 21:14:36 +0000 (17:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 10 Jun 2016 13:40:34 +0000 (09:40 -0400)
rbd-mirror stress test cases need a way to disable lockdep when
initiated in a vstart environment.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/vstart.sh

index e48f4e9e0c16288abae981af0f1b491138aa860c..f6c196a4f250b8f8e8f33eab18b4176c7e3a163b 100755 (executable)
@@ -99,6 +99,7 @@ cephx=1 #turn cephx on by default
 cache=""
 memstore=0
 bluestore=0
+lockdep=${LOCKDEP:-1}
 
 VSTART_SEC="client.vstart.sh"
 
@@ -135,6 +136,7 @@ usage=$usage"\t--bluestore use bluestore as the osd objectstore backend\n"
 usage=$usage"\t--memstore use memstore as the osd objectstore backend\n"
 usage=$usage"\t--cache <pool>: enable cache tiering on pool\n"
 usage=$usage"\t--short: short object names only; necessary for ext4 dev\n"
+usage=$usage"\t--nolockdep disable lockdep\n"
 
 usage_exit() {
        printf "$usage"
@@ -271,6 +273,9 @@ case $1 in
            fi
            shift
            ;;
+    --nolockdep )
+            lockdep=0
+            ;;
     * )
            usage_exit
 esac
@@ -370,9 +375,6 @@ if [ "$bluestore" -eq 1 ]; then
        osd objectstore = bluestore'
 fi
 
-# lockdep everywhere?
-# export CEPH_ARGS="--lockdep 1"
-
 if [ -z "$CEPH_PORT" ]; then
     CEPH_PORT=6789
     [ -e ".ceph_port" ] && CEPH_PORT=`cat .ceph_port`
@@ -473,8 +475,12 @@ if [ "$start_mon" -eq 1 ]; then
         filestore fd cache size = 32
         run dir = $CEPH_OUT_DIR
         enable experimental unrecoverable data corrupting features = *
+EOF
+if [ "$lockdep" -eq 1 ] ; then
+cat <<EOF >> $conf_fn
         lockdep = true
 EOF
+fi
 if [ "$cephx" -eq 1 ] ; then
 cat <<EOF >> $conf_fn
         auth supported = cephx