Message ID | 20190401140903.19186-2-eblake@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,01/14] qemu-img: Report bdrv_block_status failures | expand |
diff --git a/qemu-img.c b/qemu-img.c index 8ee63daeaeb..03a9a10dec1 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1630,6 +1630,8 @@ static int convert_iteration_sectors(ImgConvertState *s, int64_t sector_num) count, &count, NULL, NULL); } if (ret < 0) { + error_report("error while reading block status of sector %" PRId64 + ": %s", sector_num, strerror(-ret)); return ret; } n = DIV_ROUND_UP(count, BDRV_SECTOR_SIZE);