./multifstat $MOUNT1/f6 $MOUNT2/f6
pass
+if [ -n "$BUG_1365" ]; then
+echo -n "test 7: create a file on one mount, truncate it on the other..."
+mcreate $MOUNT1/f1
+truncate $MOUNT2/f1 100
+rm $MOUNT1/f1
+pass
+else
+echo "Skipping test for 1365: set \$BUG_1365 to run it (and crash, likely)."
+fi
+
echo "test 9: remove of open file on other node..."
./openunlink $MOUNT1/f9 $MOUNT2/f9 || error
pass
+echo "test 9b: remove of open directory on other node..."
+./opendirunlink $MOUNT1/dir1 $MOUNT2/dir1 || error
+pass
+
+#echo "test 9c: remove of open special file on other node..."
+#./opendevunlink $MOUNT1/dev1 $MOUNT2/dev1 || error
+#pass
+
echo -n "test 10: append of file with sub-page size on multiple mounts..."
MTPT=1
> $MOUNT2/f10
done
[ "`cat $MOUNT1/f11`" = "abcdefghijkl" ] && pass || error
-echo "test 12: file length and contents across mounts"
-dd if=$SHELL of=$MOUNT1/f12 bs=4096 count=1
-$CHECKSTAT -s 4096 $MOUNT1/f12 $MOUNT2/f12 || error
-dd if=$SHELL bs=4096 count=1 | \
- md5sum - $MOUNT1/f12 $MOUNT2/f12 | ( \
- read GOODSUM DASH; \
- while read SUM FILE ; do \
- [ $SUM == $GOODSUM ] || exit 2; \
- done; ) || error
-
-echo "test 13: open(,O_TRUNC,), close() across mounts"
-dd if=$SHELL of=$MOUNT1/f13 bs=4096 count=1
-> $MOUNT1/f13
-$CHECKSTAT -s 0 $MOUNT1/f13 $MOUNT2/f13 || error
-
-echo "test 14: file extension while holding the fd open"
-> $MOUNT1/f14
-# ugh.
-touch $MOUNT1/f14-start
-sh -c "
- echo -n a;
- mv $MOUNT1/f14-start $MOUNT1/f14-going;
- while [ -f $MOUNT1/f14-going ] ; do sleep 1; done;
- " >> $MOUNT1/f14 &
-while [ -f $MOUNT1/f14-start ] ; do sleep 1; done;
-$CHECKSTAT -s 1 $MOUNT1/f14 $MOUNT2/f14 || error
-rm $MOUNT1/f14-going
-
rm -f $MOUNT1/f[0-9]* $MOUNT1/lnk
+
$CLEAN
exit