Re: [Qemu-devel] [PATCH v4 19/21] block: Make bdrv_is_allocated() byte-based

2017-07-07 Thread Kevin Wolf
Am 07.07.2017 um 04:55 hat Eric Blake geschrieben: > On 07/06/2017 11:02 AM, Kevin Wolf wrote: > > >> +++ b/qemu-img.c > >> @@ -3229,6 +3229,7 @@ static int img_rebase(int argc, char **argv) > >> int64_t new_backing_num_sectors = 0; > >> uint64_t sector; > >> int n; > >>

Re: [Qemu-devel] [PATCH v4 19/21] block: Make bdrv_is_allocated() byte-based

2017-07-06 Thread Eric Blake
On 07/06/2017 11:02 AM, Kevin Wolf wrote: >> +++ b/qemu-img.c >> @@ -3229,6 +3229,7 @@ static int img_rebase(int argc, char **argv) >> int64_t new_backing_num_sectors = 0; >> uint64_t sector; >> int n; >> +int64_t count; >> float local_progress = 0; >> >

Re: [Qemu-devel] [PATCH v4 19/21] block: Make bdrv_is_allocated() byte-based

2017-07-06 Thread Eric Blake
On 07/06/2017 11:02 AM, Kevin Wolf wrote: > Am 05.07.2017 um 23:08 hat Eric Blake geschrieben: >> We are gradually moving away from sector-based interfaces, towards >> byte-based. In the common case, allocation is unlikely to ever use >> values that are not naturally sector-aligned, but it is poss

Re: [Qemu-devel] [PATCH v4 19/21] block: Make bdrv_is_allocated() byte-based

2017-07-06 Thread Kevin Wolf
Am 05.07.2017 um 23:08 hat Eric Blake geschrieben: > We are gradually moving away from sector-based interfaces, towards > byte-based. In the common case, allocation is unlikely to ever use > values that are not naturally sector-aligned, but it is possible > that byte-based values will let us be mo