Re: [Qemu-devel] [PATCH v2] block: Fix bdrv_is_allocated() for short backing files

2014-05-08 Thread Max Reitz
On 07.05.2014 10:31, Kevin Wolf wrote: 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 --- v2: - Set BDRV_BLOCK_ALLOCATED for !dr

[Qemu-devel] [PATCH v2] block: Fix bdrv_is_allocated() for short backing files

2014-05-07 Thread Kevin Wolf
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 --- v2: - Set BDRV_BLOCK_ALLOCATED for !drv->bdrv_co_get_block_status (Max) block