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