]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qcow2: Catch bdrv_getlength() error
authorMax Reitz <mreitz@redhat.com>
Tue, 29 Apr 2014 17:03:13 +0000 (19:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Apr 2014 12:46:17 +0000 (14:46 +0200)
commita49139af77850d64d74f9ffe43cabe7aa4f19de0
treecdc502c986e95039e30a3c639e24509ccc3bec2e
parent521b2b5df0ccad764cf95164c6e428f855067a6f
qcow2: Catch bdrv_getlength() error

The call to bdrv_getlength() from qcow2_check_refcounts() may result in
an error. Check this and abort if necessary.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c