1DESCRIPTION="enable MMP during mke2fs" 2FS_SIZE=65536 3MKE2FS_DEVICE_SECTSIZE=2048 4export MKE2FS_DEVICE_SECTSIZE 5 6# use current directory instead of /tmp becase tmpfs doesn't support DIO 7rm -f $TMPFILE 8TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX) 9 10stat -f $TMPFILE | grep -q "Type: tmpfs" 11if [ $? = 0 ]; then 12 rm -f $TMPFILE 13 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)" 14 return 0 15fi 16MKE2FS_OPTS="-b 4096 -O mmp" 17. $cmd_dir/run_mke2fs 18unset MKE2FS_DEVICE_SECTSIZE 19