Lines Matching +full:full +full:- +full:length
51 for create_mode in off falloc full; do
52 for growth_mode in off falloc full; do
54 echo "--- create_mode=$create_mode growth_mode=$growth_mode ---"
59 _make_test_img -o "preallocation=$create_mode,extent_size_hint=0" ${CREATION_SIZE}K
60 $QEMU_IMG resize -f "$IMGFMT" --preallocation=$growth_mode "$TEST_IMG" +${GROWTH_SIZE}K
70 actual_size=$($QEMU_IMG info -f "$IMGFMT" "$TEST_IMG" | grep 'disk size' | head -n 1)
71 actual_size=$(echo "$actual_size" | sed -e 's/^[^0-9]*\([0-9]\+\).*$/\1/')
76 if [ $actual_size -lt $expected_size ]; then
87 for growth_mode in falloc full off; do
89 echo "--- growth_mode=$growth_mode ---"
90 $QEMU_IMG resize -f "$IMGFMT" --shrink --preallocation=$growth_mode "$TEST_IMG" -${GROWTH_SIZE}K
96 for growth_mode in falloc full; do
98 echo "--- growth_mode=$growth_mode ---"
101 # preallocation; if the file has a length of 2 GB, that would
106 _make_test_img -o "extent_size_hint=0" 2G
107 $QEMU_IMG resize -f "$IMGFMT" --preallocation=$growth_mode "$TEST_IMG" +${GROWTH_SIZE}K
109 actual_size=$($QEMU_IMG info -f "$IMGFMT" "$TEST_IMG" | grep 'disk size' | head -n 1)
110 actual_size=$(echo "$actual_size" | sed -e 's/^[^0-9]*\([0-9]\+\).*$/\1/')
112 if [ $actual_size -lt $GROWTH_SIZE ]; then
119 rm -f $seq.full