Lines Matching +full:base +full:- +full:64

54 # formats that use clusters.  This will ensure that the base image doesn't end
58 # The base image is smaller than the image file
59 base_size=$(( image_size - 1024 * 1024 * 1024 ))
61 offset=$(( base_size - 32 * 1024 ))
64 TEST_IMG="$TEST_IMG.base"
68 echo "Filling base image"
71 # Fill end of base image with a pattern, skipping every other sector
80 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $image_size
85 # Write every other sector around where the base image ends
86 io writev $(( offset + 512 )) 512 1024 64
93 # Base image sectors
97 io readv $(( offset + 512 )) 512 1024 64
99 # Zero sectors beyond end of base image
104 # Rebase it on top of its base image
105 $QEMU_IMG rebase -b "$TEST_IMG.base" -F $IMGFMT "$TEST_IMG"
108 echo block-backup
112 _launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},aio=${AIOMODE},id=disk
121 _send_qemu_cmd $h "drive_backup -n disk ${TEST_IMG}.copy" "(qemu)" \
124 silent=y qemu_cmd_repeat=20 _send_qemu_cmd $h "info block-jobs" "No active jobs"
125 _send_qemu_cmd $h "info block-jobs" "No active jobs"
128 # Base image sectors
132 TEST_IMG="${TEST_IMG}.copy" io readv $(( offset + 512 )) 512 1024 64
134 # Zero sectors beyond end of base image
144 # Use a cluster boundary as the base end here
147 TEST_IMG="$TEST_IMG.base" _make_test_img $base_size
148 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $image_size
150 # Write 16 times 42 at the end of the base image
151 $QEMU_IO -c "write -P 42 $((base_size - 16)) 16" "$TEST_IMG.base" \
154 # Read 32 bytes across the base EOF from the top;
156 $QEMU_IO -c "read -v $((base_size - 16)) 32" "$TEST_IMG" \
161 rm -f $seq.full