summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/041.out
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-07-01 16:52:21 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-07-07 09:15:29 +0200
commit5a0f6fd5c84573387056e0464a7fc0c6fb70b2dc (patch)
tree21b36dcf76f149c0bc3272c2a571ee0825db6647 /tests/qemu-iotests/041.out
parentbc3a7f90ff44037bbe898708081db23a08fa7189 (diff)
downloadqemu-5a0f6fd5c84573387056e0464a7fc0c6fb70b2dc.zip
mirror: Fix qiov size for short requests
When mirroring an image of a size that is not a multiple of the mirror job granularity, the last request would have the right nb_sectors argument, but a qiov that is rounded up to the next multiple of the granularity. Don't do this. This fixes a segfault that is caused by raw-posix being confused by this and allocating a buffer with request length, but operating on it with qiov length. [s/Driver/Drive/ in qemu-iotests 041 as suggested by Eric --Stefan] Reported-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Tested-by: Eric Blake <eblake@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/041.out')
-rw-r--r--tests/qemu-iotests/041.out4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/041.out b/tests/qemu-iotests/041.out
index 42147c0b58..24093bc631 100644
--- a/tests/qemu-iotests/041.out
+++ b/tests/qemu-iotests/041.out
@@ -1,5 +1,5 @@
-..............................................
+......................................................
----------------------------------------------------------------------
-Ran 46 tests
+Ran 54 tests
OK