Whamcloud - gitweb
- remove use of "lctl device_list" from lconf, now using
authorrread <rread>
Fri, 7 Nov 2003 18:52:24 +0000 (18:52 +0000)
committerrread <rread>
Fri, 7 Nov 2003 18:52:24 +0000 (18:52 +0000)
    /proc/fs/lustre/devices

lustre/tests/replay-dual.sh
lustre/tests/replay-single.sh

index 2104bb7..c61dc9e 100755 (executable)
@@ -2,10 +2,6 @@
 
 set -e
 
-LCONF=${LCONF:-"../utils/lconf"}
-LMC=${LMC:-"../utils/lmc"}
-LCTL=${LCTL:-"../utils/lctl"}
-
 LUSTRE=${LUSTRE:-`dirname $0`/..}
 . $LUSTRE/tests/test-framework.sh
 
@@ -50,7 +46,7 @@ gen_config() {
 build_test_filter
 
 cleanup() {
-    [ "$DAEMONFILE" ] && lctl debug_daemon stop
+    [ "$DAEMONFILE" ] && $LCTL debug_daemon stop
     # make sure we are using the primary MDS, so the config log will
     # be able to clean up properly.
     activemds=`facet_active mds`
@@ -58,9 +54,9 @@ cleanup() {
         fail mds
     fi
 
-    lconf  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+    $LCONF  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
        --local_nid $client_HOST --profile client_facet --mount $MOUNT
-    lconf  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+    $LCONF  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
        --local_nid $client_HOST --profile client_facet --mount $MOUNT2
     stop mds ${FORCE} --dump cleanup-dual.log
     stop ost ${FORCE}
@@ -85,15 +81,15 @@ if [ "$PINGER" != "on" ]; then
 fi
 
 # 0-conf client
-lconf --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
     --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
-lconf --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
     --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT2
 
 echo $TIMEOUT > /proc/sys/lustre/timeout
 echo $UPCALL > /proc/sys/lustre/upcall
 
-[ "$DAEMONFILE" ] && lctl debug_daemon start $DAEMONFILE $DAEMONSIZE
+[ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
 
 test_1() {
     touch $MOUNT1/a
index 8b5b114..ee24f76 100755 (executable)
@@ -6,9 +6,6 @@ set -e
 # This test needs to be run on the client
 #
 
-LCONF=${LCONF:-"../utils/lconf"}
-LMC=${LMC:-"../utils/lmc"}
-LCTL=${LCTL:-"../utils/lctl"}
 LUSTRE=${LUSTRE:-`dirname $0`/..}
 . $LUSTRE/tests/test-framework.sh
 
@@ -73,7 +70,7 @@ cleanup() {
         fail mds
     fi
 
-    lconf  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+    $LCONF  --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
        --local_nid $client_HOST --profile client_facet --mount $MOUNT
     stop mds ${FORCE} $MDSLCONFARGS
     stop ost ${FORCE} --dump cleanup.log
@@ -87,13 +84,13 @@ fi
 
 gen_config
 
-start mds --write_conf --reformat $MDSLCONFARGS 
+#start mds --write_conf --reformat $MDSLCONFARGS 
 start ost --reformat $OSTLCONFARGS 
-[ "$DAEMONFILE" ] && lctl debug_daemon start $DAEMONFILE $DAEMONSIZE
-start mds $MDSLCONFARGS --gdb
+[ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
+start mds $MDSLCONFARGS --reformat
 
 # 0-conf client
-lconf --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
     --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
 
 echo $TIMEOUT > /proc/sys/lustre/timeout
@@ -651,5 +648,16 @@ test_32() {
 }
 run_test 32 "close() notices client eviction; close() after client eviction"
 
+# Abort recovery before client complete
+test_33() {
+    replay_barrier mds
+    touch $DIR/$tfile
+    fail_abort mds
+    # this file should be gone, because the replay was aborted
+    $CHECKSTAT -t file $DIR/$tfile && return 1
+    return 0
+}
+run_test 33 "abort recovery before client does replay"
+
 equals_msg test complete, cleaning up
 cleanup