DESCRIPTION="enable MMP during mke2fs"
FS_SIZE=65536
MKE2FS_DEVICE_SECTSIZE=2048
export MKE2FS_DEVICE_SECTSIZE

# use current directory instead of /tmp becase tmpfs doesn't support DIO
rm -f $TMPFILE
TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX)

stat -f $TMPFILE | grep -q "Type: tmpfs"
if [ $? = 0 ]; then
	rm -f $TMPFILE
	echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
	return 0
fi
MKE2FS_OPTS="-b 4096 -O mmp"
. $cmd_dir/run_mke2fs
unset MKE2FS_DEVICE_SECTSIZE