diff options
author | John Snow <jsnow@redhat.com> | 2017-02-27 12:13:14 -0500 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2017-02-27 14:02:31 -0500 |
commit | 39c11580f3af8a96a7fba9b8b80a047a0b88b0ec (patch) | |
tree | 0d6755911c5769dc8aa339bc3116bb54ad7fff51 /block/mirror.c | |
parent | 8f2d7c341184a95d05476ea3c45dbae2b9ddbe51 (diff) | |
download | qemu-39c11580f3af8a96a7fba9b8b80a047a0b88b0ec.zip qemu-39c11580f3af8a96a7fba9b8b80a047a0b88b0ec.tar.gz qemu-39c11580f3af8a96a7fba9b8b80a047a0b88b0ec.tar.bz2 |
block/mirror: fix broken sparseness detection
int64_t is in all likelihood the actual scalar type we want.
Yep, really.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1219541
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'block/mirror.c')
-rw-r--r-- | block/mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c index 3d50857..1b34b36 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -386,7 +386,7 @@ static uint64_t coroutine_fn mirror_iteration(MirrorBlockJob *s) nb_chunks * sectors_per_chunk); bitmap_set(s->in_flight_bitmap, sector_num / sectors_per_chunk, nb_chunks); while (nb_chunks > 0 && sector_num < end) { - int ret; + int64_t ret; int io_sectors, io_sectors_acct; BlockDriverState *file; enum MirrorMethod { |