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

2014-05-07 Thread Kevin Wolf
Am 06.05.2014 um 21:53 hat Max Reitz geschrieben: > On 06.05.2014 15:30, 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. > > > >Sign

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

2014-05-06 Thread Max Reitz
On 06.05.2014 15:30, 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 --- block.c | 8 +---

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

2014-05-06 Thread Paolo Bonzini
Il 06/05/2014 15:30, Kevin Wolf ha scritto: 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 Nice. :) Paolo

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

2014-05-06 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 --- block.c | 8 +--- include/block/block.h | 11 +++ 2