qemu-patch-raspberry4/include/block
Asias He 0d51b4debe block: Introduce bs->zero_beyond_eof
In 4146b46c42e0989cb5842e04d88ab6ccb1713a48 (block: Produce zeros when
protocols reading beyond end of file), we break qemu-iotests ./check
-qcow2 022. This happens because qcow2 temporarily sets ->growable = 1
for vmstate accesses (which are stored beyond the end of regular image
data).

We introduce the bs->zero_beyond_eof to allow qcow2_load_vmstate() to
disable ->zero_beyond_eof temporarily in addition to enable ->growable.

[Since the broken patch "block: Produce zeros when protocols reading
beyond end of file" has not been merged yet, I have applied this fix
*first* and will then apply the next patch to keep the tree bisectable.
-- Stefan]

Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-08-22 14:10:21 +02:00
..
aio.h aio: drop io_flush argument 2013-08-19 15:52:19 +02:00
block.h block: add bdrv_write_zeroes() 2013-07-19 12:29:21 +08:00
block_int.h block: Introduce bs->zero_beyond_eof 2013-08-22 14:10:21 +02:00
blockjob.h block: move include files to include/block/ 2012-12-19 08:31:31 +01:00
coroutine.h block: Repair the throttling code. 2013-07-29 17:07:37 +02:00
coroutine_int.h coroutine: stop using AioContext in CoQueue 2013-05-24 16:17:56 +02:00
nbd.h nbd: support large NBD requests 2013-05-03 13:05:49 +02:00
qapi.h qmp: add ImageInfo in BlockDeviceInfo used by query-block 2013-06-07 13:37:45 +02:00
scsi.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
snapshot.h block: move snapshot code in block.c to block/snapshot.c 2013-06-04 13:56:30 +02:00
thread-pool.h threadpool: drop global thread pool 2013-03-15 16:07:51 +01:00