]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
block: Fix bdrv_is_allocated() for short backing files
authorKevin Wolf <kwolf@redhat.com>
Tue, 6 May 2014 13:25:36 +0000 (15:25 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 19 May 2014 09:36:48 +0000 (11:36 +0200)
commite88ae2264d93f98e4b656fa76555c745abe57684
tree43c4370b441d90d8693c796ed6dde0b8c1525ed6
parent1a381811b495651ddfc2b50d7c8cfaaf375816b0
block: Fix bdrv_is_allocated() for short backing files

bdrv_is_allocated() shouldn't return true for sectors that are
unallocated, but after the end of a short backing file, even though
such sectors are (correctly) marked as containing zeros.

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