require_dsh_mds || exit 0
-MCREATE=${MCREATE:-mcreate}
SAVED_MDSSIZE=${MDSSIZE}
SAVED_OSTSIZE=${OSTSIZE}
SAVED_OSTCOUNT=${OSTCOUNT}
[[ $(lustre_version_code ost1) -lt $(version_code 2.5.55) ]] &&
ALWAYS_EXCEPT="$ALWAYS_EXCEPT 11 12 13 14 15 16 17 18 19 20 21"
-[ $(facet_fstype $SINGLEMDS) = "zfs" ] &&
-# bug number for skipped test: LU-4970
- ALWAYS_EXCEPT="$ALWAYS_EXCEPT 14"
-
build_test_filter
$LCTL set_param debug=+lfsck > /dev/null || true
local POS1=$($SHOW_NAMESPACE |
awk '/^latest_start_position/ { print $2 }' |
tr -d ',')
- [ $POS0 -lt $POS1 ] ||
+ [[ $POS0 -lt $POS1 ]] ||
error "(7) Expect larger than: $POS0, but got $POS1"
do_facet $SINGLEMDS $LCTL set_param fail_loc=0 fail_val=0
awk '/^latest_start_position/ { print $4 }')
if [ "$D_POS0" == "N/A" -o "$D_POS1" == "N/A" ]; then
- [ $O_POS0 -lt $O_POS1 ] ||
+ [[ $O_POS0 -lt $O_POS1 ]] ||
error "(7.1) $O_POS1 is not larger than $O_POS0"
else
- [ $D_POS0 -lt $D_POS1 ] ||
+ [[ $D_POS0 -lt $D_POS1 ]] ||
error "(7.2) $D_POS1 is not larger than $D_POS0"
fi
if [ $MDSCOUNT -ge 2 ]; then
$LFS mkdir -i 1 $DIR/$tdir/a2
- $LFS setstripe -c 2 -i 1 -s 1M $DIR/$tdir/a2
- do_facet ost2 $LCTL set_param fail_loc=0x1617
+ $LFS setstripe -c 1 -i 0 -s 1M $DIR/$tdir/a2
dd if=/dev/zero of=$DIR/$tdir/a2/f2 bs=1M count=2
$LFS getstripe $DIR/$tdir/a2/f2
fi
done
if [ $MDSCOUNT -ge 2 ]; then
- expected=3
+ expected=2
else
expected=1
fi
error "(5) Expect 0 fixed on mds2, but got: $repaired"
fi
- echo "There should be some stub under .lustre/lost+found/MDT0001/"
+ echo "There should NOT be some stub under .lustre/lost+found/MDT0001/"
ls -ail $MOUNT/.lustre/lost+found/MDT0001/*-N-0 &&
error "(6) .lustre/lost+found/MDT0001/ should be empty"