]> xenbits.xensource.com Git - qemu-upstream-unstable.git/commit
qcow2: Respect bdrv_truncate() error
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:52 +0000 (18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 22 Feb 2015 18:09:55 +0000 (12:09 -0600)
commit9b3f3d6da97727576b36958fa60f0b0faffb334a
tree993ed2892986f747108ad38a7fe310e9a7d5c7a8
parent6f45cda114497bafa4186d6395eb06d2b85c55c4
qcow2: Respect bdrv_truncate() error

bdrv_truncate() may fail and qcow2_write_compressed() should return the
error code in that case.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 6a69b9620ac1562a067990d87284a85552bfd61b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2.c