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 = "";
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() {
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
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
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