qemu/tests/qemu-iotests
Fam Zheng 4150ae60eb mirror: Don't extend the last sub-chunk
The last sub-chunk is rounded up to the copy granularity in the target
image, resulting in a larger size than the source.

Add a function to clip the copied sectors to the end.

This undoes the "wrong" changes to tests/qemu-iotests/109.out in
e5b43573e28. The remaining two offset changes are okay.

[ kwolf: Use DIV_ROUND_UP to calculate nb_chunks now ]

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
2016-04-20 16:52:55 +02:00
..
2015-12-17 08:21:27 +01:00
030
2016-03-28 13:56:44 -04:00
2016-03-28 13:56:44 -04:00
2016-04-15 17:22:11 +02:00
044
045
048
2016-03-30 12:16:03 +02:00
057
065
2016-02-22 16:54:14 +01:00
2015-10-23 18:18:22 +02:00
074
091
095
2016-01-07 21:30:17 +01:00
2016-01-07 21:30:17 +01:00
2015-12-18 14:36:17 +01:00
118
2016-02-02 17:49:42 +01:00
2016-03-30 12:16:03 +02:00
2016-02-22 09:49:46 +01:00
2016-02-16 14:29:27 +00: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@savannah.nongnu.org.