OSTSIZE=${OSTSIZE:-100000}
UPCALL=${UPCALL:-$RPWD/recovery-small-upcall.sh}
FSTYPE=${FSTYPE:-ext3}
-
+TIMEOUT=${TIMEOUT:-5}
do_mds() {
$PDSH $MDSNODE "PATH=\$PATH:$RLUSTRE/utils:$RLUSTRE/tests; cd $RPWD; $@" || exit $?
}
do_mds "echo 0 > /proc/sys/lustre/fail_loc"
}
+pause_bulk() {
+#define OBD_FAIL_OST_BRW_PAUSE_BULK 0x214
+ do_ost "echo 0x214 > /proc/sys/lustre/fail_loc"
+ do_client "$1"
+ do_client "sync"
+ do_ost "echo 0 > /proc/sys/lustre/fail_loc"
+}
make_config() {
rm -f $CONFIG
for NODE in $CLIENT $MDSNODE $OSTNODE; do
setup() {
start_mds ${REFORMAT}
- start_ost ${REFORMAT}
+ start_ost --timeout=$(($TIMEOUT*2)) ${REFORMAT}
# XXX we should write our own upcall, when we move this somewhere better.
- mount_client --timeout=${TIMEOUT:-5} \
+ mount_client --timeout=${TIMEOUT} \
--lustre_upcall=$UPCALL
}