]> 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)
committerMax Reitz <mreitz@redhat.com>
Fri, 28 Apr 2017 14:02:02 +0000 (16:02 +0200)
commit55b9392b98e500399f2da1edc1d110bbfd40fb05
tree8a248a50f5ce79664be0e3bb7d8cd7675220a3e4
parent2b4c0a20fbcfdba838d412d07739b2f4b6f7cd9a
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>
block/vhdx.c