Whamcloud - gitweb
Branch HEAD
authorvitaly <vitaly>
Wed, 3 Jun 2009 01:03:03 +0000 (01:03 +0000)
committervitaly <vitaly>
Wed, 3 Jun 2009 01:03:03 +0000 (01:03 +0000)
b=19154
i=vs
i=rread

debug patch to get more info, +D_OTHER this time

lustre/tests/replay-single.sh

index f5eaf5c..394ef8d 100755 (executable)
@@ -460,6 +460,12 @@ test_20a() {       # was test_20
 run_test 20a "|X| open(O_CREAT), unlink, replay, close (test mds_cleanup_orphans)"
 
 test_20b() { # bug 10480
 run_test 20a "|X| open(O_CREAT), unlink, replay, close (test mds_cleanup_orphans)"
 
 test_20b() { # bug 10480
+    # XXX increase the debug level temporary 
+    DEBUG_SAVED=$PTLDEBUG
+    DEBUG_MB_SAVED=$DEBUG_SIZE
+    PTLDEBUG=0x33f1404
+    DEBUG_SIZE=150
+    do_nodes $(comma_list $(nodes_list)) "$LCTL set_param debug=$PTLDEBUG; $LCTL set_param debug_mb=$DEBUG_SIZE"
     BEFOREUSED=`df -P $DIR | tail -1 | awk '{ print $3 }'`
 
     dd if=/dev/zero of=$DIR/$tfile bs=4k count=10000 &
     BEFOREUSED=`df -P $DIR | tail -1 | awk '{ print $3 }'`
 
     dd if=/dev/zero of=$DIR/$tfile bs=4k count=10000 &
@@ -484,6 +490,10 @@ test_20b() { # bug 10480
     log "before $BEFOREUSED, after $AFTERUSED"
     [ $AFTERUSED -gt $((BEFOREUSED + 20)) ] && \
         error "after $AFTERUSED > before $BEFOREUSED"
     log "before $BEFOREUSED, after $AFTERUSED"
     [ $AFTERUSED -gt $((BEFOREUSED + 20)) ] && \
         error "after $AFTERUSED > before $BEFOREUSED"
+    # XXX decrease it back
+    PTLDEBUG=$DEBUG_SAVED
+    DEBUG_SIZE=$DEBUG_MB_SAVED
+    do_nodes $(comma_list $(nodes_list)) "$LCTL set_param debug=$PTLDEBUG; $LCTL set_param debug_mb=$DEBUG_SIZE"
     return 0
 }
 run_test 20b "write, unlink, eviction, replay, (test mds_cleanup_orphans)"
     return 0
 }
 run_test 20b "write, unlink, eviction, replay, (test mds_cleanup_orphans)"