]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Emit errp when truncating the image tail
authorMax Reitz <mreitz@redhat.com>
Mon, 9 Oct 2017 15:54:31 +0000 (17:54 +0200)
committerMax Reitz <mreitz@redhat.com>
Thu, 26 Oct 2017 13:01:14 +0000 (15:01 +0200)
commit233521b1999810036f63d060ce021d30a8ce0504
tree86fdd0d63f87a9929ad731a7398aea24d0e3fa0b
parentb66df843b442924745d196bd0a05f0639b808164
qcow2: Emit errp when truncating the image tail

bdrv_truncate() has an errp parameter which is always set when an error
occurs.  Let's use that instead of a plain strerror().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171009155431.14093-1-mreitz@redhat.com
Reviewed-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c