]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img: Report convert errors by bytes, not sectors
authorEric Blake <eblake@redhat.com>
Thu, 2 Apr 2020 13:57:17 +0000 (08:57 -0500)
committerMax Reitz <mreitz@redhat.com>
Tue, 7 Apr 2020 11:51:09 +0000 (13:51 +0200)
commit39f77cb662c6a7c4c398ee568ebc0ebcd710d0c4
treec72d41ddd66f6ee4689cee133da9a55a640531fa
parent80f5c01183597b075157eb7bedbcb8691f8fa1d1
qemu-img: Report convert errors by bytes, not sectors

Various qemu-img commands are inconsistent on whether they report
status/errors in terms of bytes or sector offsets.  The latter is
confusing (especially as more places move to 4k block sizes), so let's
switch everything to just use bytes everywhere.  One iotest is
impacted.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200402135717.476398-1-eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c
tests/qemu-iotests/244.out