interleave=
needfiles=1
write_blocksize=262144
+args=
if uname -a | grep --silent arwin ; then
ddmega=m
-d) dir=$2; shift; shift ;;
-f) filesize=$2; shift; shift ;;
-n) numfiles=$2; shift; shift ;;
- -N) nocache="-s"; shift;;
+ -M) args="$args -M"; shift ;;
+ -D) args="$args -D"; shift ;;
+ -R) args="$args -R"; shift ;;
*) break ;;
esac
done
if [ -d $dir -a -f $dir/testfile_1 ] ; then
# dir exists and has a testfile within it - reuse to avoid
# recreating files
- echo "Re-using files in $dir"
+ echo "# Re-using files in $dir"
needfiles=
else
dir=$dir/readtest_$$
fi
if [ x$needfiles != x ] ; then
- echo "Building files for test..."
+ echo "# Building files for test..."
if [ x$interleave = x ] ; then
#
:
fi
- echo "Blocksize $bs"
- ./readtest $nocache -b $bs -q $dir/testfile_%d
+ echo "# Blocksize $bs"
+ ./readtest $args -b $bs -q $dir/testfile_%d
done