diff --git a/qemu-img.c b/qemu-img.c index 86060aab71..bf9de27893 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -2826,7 +2826,7 @@ static int img_map(int argc, char **argv) int64_t n; /* Probe up to 1 GiB at a time. */ - n = QEMU_ALIGN_DOWN(MIN(1 << 30, length - offset), BDRV_SECTOR_SIZE); + n = MIN(1 << 30, length - offset); ret = get_block_status(bs, offset, n, &next); if (ret < 0) {