qemu/tests/qemu-iotests
Kevin Wolf ffa41a62d0 iotests/109: Don't mirror with mismatched size
This patch makes the raw image the same size as the file in a different
format that is mirrored as raw to it to avoid errors when mirror starts
to enforce that source and target are the same size.

We check only that the first 512 bytes are zeroed (instead of 64k)
because some image formats create image files that are smaller than 64k,
so trying to read 64k would result in I/O errors. Apart from this, 512
is more appropriate anyway because the raw format driver protects
specifically the first 512 bytes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200511135825.219437-2-kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2020-05-18 19:05:24 +02:00
..
001
2020-05-05 13:17:36 +02:00
002
003
004
008
009
010
011
012
013
017
018
021
022
023
025
027
032
033
034
035
037
038
042
047
2019-11-19 10:01:34 +01:00
052
2020-05-05 13:17:36 +02:00
054
063
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
064
065
2020-05-13 14:20:31 +02:00
070
072
075
076
077
078
079
2020-01-06 13:43:07 +01:00
080
2020-05-13 14:20:31 +02:00
082
2020-05-08 13:26:35 +02:00
083
2019-10-28 11:22:31 +01:00
084
085
2020-03-24 11:57:38 +01:00
086
087
2020-03-24 11:57:38 +01:00
091
2020-05-08 13:26:35 +02:00
2020-01-06 13:43:07 +01:00
097
101
104
105
106
2020-01-06 13:43:07 +01:00
107
110
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
111
2020-01-06 13:43:07 +01:00
115
2020-01-06 13:43:07 +01:00
116
117
119
120
125
2020-01-06 13:43:07 +01:00
126
128
130
131
133
134
2020-05-05 13:17:36 +02:00
135
137
2020-01-06 13:43:07 +01:00
2020-01-06 13:43:07 +01:00
140
2019-10-28 11:22:31 +01:00
143
2019-10-28 11:22:31 +01:00
145
146
147
2020-02-20 16:43:42 +01:00
148
2020-05-08 13:26:35 +02:00
149
2020-05-05 13:17:36 +02:00
150
153
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
154
2020-03-11 15:54:38 +01:00
157
158
162
2019-10-10 12:13:23 +02:00
171
174
2020-01-06 13:43:07 +01:00
175
2020-01-06 13:43:07 +01:00
179
184
186
188
2020-05-05 13:17:36 +02:00
192
2019-10-28 11:22:31 +01:00
194
2020-05-05 13:17:36 +02:00
198
2020-01-06 13:43:07 +01:00
202
2020-05-05 13:17:36 +02:00
203
2020-05-05 13:17:36 +02:00
204
206
2020-05-05 13:17:36 +02:00
207
2020-05-05 13:17:36 +02:00
208
2020-05-05 13:17:36 +02:00
209
2020-05-05 13:17:36 +02:00
210
2020-05-05 13:17:36 +02:00
211
2020-05-05 13:17:36 +02:00
212
2020-05-05 13:17:36 +02:00
213
2020-05-05 13:17:36 +02:00
216
2020-05-05 13:17:36 +02:00
218
2020-05-05 13:17:36 +02:00
219
2020-05-05 13:17:36 +02:00
221
222
2020-05-05 13:17:36 +02:00
224
2020-05-05 13:17:36 +02:00
226
227
228
2020-05-05 13:17:36 +02:00
231
233
234
2020-05-05 13:17:36 +02:00
235
2020-05-05 13:17:36 +02:00
236
2020-05-05 13:17:36 +02:00
237
2020-05-05 13:17:36 +02:00
238
2020-05-05 13:17:36 +02:00
239
240
2019-10-28 11:22:31 +01:00
242
2020-05-05 13:17:36 +02:00
246
2020-05-05 13:17:36 +02:00
248
2020-05-05 13:17:36 +02:00
251
253
254
2020-05-05 13:17:36 +02:00
255
2020-05-05 13:17:36 +02:00
256
2020-05-05 13:17:36 +02:00
258
2020-05-05 13:17:36 +02:00
260
2020-05-05 13:17:36 +02:00
262
2020-05-05 13:17:36 +02:00
263
2019-09-16 15:37:12 +02:00
264
2020-05-05 13:17:36 +02:00
265
2020-01-06 13:43:07 +01:00
268
270
274
2020-05-05 13:17:36 +02:00
277
2020-05-05 13:17:36 +02:00
2019-11-18 16:01:31 -06:00
279
2020-03-24 11:57:38 +01:00
280
2020-05-05 13:17:36 +02:00
286
2020-02-20 16:43:42 +01:00
2020-05-08 13:26:35 +02:00

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@nongnu.org with a CC:
to qemu-block@nongnu.org.