Whamcloud - gitweb
Quiet compiler warning in fsx on ia64.
authoradilger <adilger>
Wed, 28 Apr 2004 04:20:09 +0000 (04:20 +0000)
committeradilger <adilger>
Wed, 28 Apr 2004 04:20:09 +0000 (04:20 +0000)
Don't remount the filesystem on the client each time if running the
replay/recovery tests multiple times.

lustre/tests/fsx.c
lustre/tests/recovery-small.sh
lustre/tests/replay-dual.sh
lustre/tests/replay-ost-single.sh
lustre/tests/replay-single.sh

index 12027d0..c87cd6a 100644 (file)
@@ -557,18 +557,18 @@ alloc_tf_buf(void)
        max_tf_len = sprintf(tf_buf, "%u ", highest);
 }
 
-char * 
+char *
 fill_tf_buf(struct test_file *tf)
 {
        if (tf_buf == NULL)
                alloc_tf_buf();
 
-       sprintf(tf_buf,"%u ", tf - test_files);
+       sprintf(tf_buf,"%u ", (int)(tf - test_files));
        return tf_buf;
 }
 
 void
-output_line(struct test_file *tf, int op, unsigned long offset, 
+output_line(struct test_file *tf, int op, unsigned long offset,
                unsigned long size, struct timeval *tv)
 {
        char *tf_num = "";
index 241feec..b79d32d 100755 (executable)
@@ -39,7 +39,7 @@ setup() {
     start ost2 --reformat $OSTLCONFARGS 
     [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
     start mds $MDSLCONFARGS --reformat
-    zconf_mount `hostname`  $MOUNT
+    grep " $MOUNT " /proc/mounts || zconf_mount `hostname`  $MOUNT
 }
 
 cleanup() {
index 8e10631..9c1f1e1 100755 (executable)
@@ -62,8 +62,8 @@ fi
 start ost2 --reformat $OSTLCONFARGS 
 [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
 start mds $MDSLCONFARGS --reformat
-zconf_mount `hostname` $MOUNT
-zconf_mount `hostname` $MOUNT2
+grep " $MOUNT " /proc/mounts || zconf_mount `hostname` $MOUNT
+grep " $MOUNT2 " /proc/mounts || zconf_mount `hostname` $MOUNT2
 
 echo $TIMEOUT > /proc/sys/lustre/timeout
 echo $UPCALL > /proc/sys/lustre/upcall
index 4331be5..f1523bb 100755 (executable)
@@ -56,7 +56,7 @@ setup() {
     start ost --reformat $OSTLCONFARGS
     [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
     start mds --reformat $MDSLCONFARGS
-    zconf_mount `hostname` $MOUNT
+    grep " $MOUNT " /proc/mounts || zconf_mount `hostname` $MOUNT
 }
 
 mkdir -p $DIR
index 5a1dd22..f1fae7a 100755 (executable)
@@ -61,8 +61,8 @@ setup() {
     start ost2 --reformat $OSTLCONFARGS 
     [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
     start mds $MDSLCONFARGS --reformat
-    zconf_mount `hostname` $MOUNT
-    echo 0x3f0410 > /proc/sys/portals/debug
+    grep " $MOUNT " /proc/mounts || zconf_mount `hostname` $MOUNT
+    #echo 0x3f0410 > /proc/sys/portals/debug
 }
 
 $SETUP