]> git.proxmox.com Git - mirror_qemu.git/commit
block/vhdx: Make vhdx_create() always set errp
authorMax Reitz <mreitz@redhat.com>
Tue, 28 Mar 2017 20:51:26 +0000 (22:51 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Aug 2017 19:29:10 +0000 (14:29 -0500)
commit73aa7ad7d2249a602a93b6c2a8ecbd57bacbc482
tree2396695df018d3e2b2cca7cea7d5a82bd89716f4
parentd8cddcc2b9c741896ae2216a60859c75fe223756
block/vhdx: Make vhdx_create() always set errp

This patch makes vhdx_create() always set errp in case of an error. It
also adds errp parameters to vhdx_create_bat() and
vhdx_create_new_region_table() so we can pass on the error object
generated by blk_truncate() as of a future commit.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20170328205129.15138-2-mreitz@redhat.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
(cherry picked from commit 55b9392b98e500399f2da1edc1d110bbfd40fb05)
* prereq for 698bdfa
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/vhdx.c