]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/vhdx: add check for truncated image files
authorPeter Lieven <pl@kamp.de>
Tue, 10 Sep 2019 15:26:22 +0000 (17:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Oct 2019 15:12:48 +0000 (17:12 +0200)
commit6caaad46de02c02fb1eeaae64fcdc74f9e0a5eb0
tree99d7f8c75d8a3ca43da59688a3a73731ea64961d
parent22dbfdecc3c52228d3489da3fe81da92b21197bf
block/vhdx: add check for truncated image files

qemu is currently not able to detect truncated vhdx image files.
Add a basic check if all allocated blocks are reachable at open and
report all errors during bdrv_co_check.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vhdx.c