qemu-img: round down request length to an aligned sector
authorPeter Lieven <pl@kamp.de>
Wed, 27 Nov 2013 10:07:07 +0000 (11:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Dec 2013 15:53:03 +0000 (16:53 +0100)
commit24f833cd43dbfb5f8ae99e8a6d3691671622d3ea
tree1f8487a0afb9293471fbde2e095a0bdb28f6ddb1
parentf2521c9023067a007d18b844fe7639c1c5b6f2ac
qemu-img: round down request length to an aligned sector

this patch shortens requests to end at an aligned sector so that
the next request starts aligned.

[Squashed Peter's fix for bdrv_get_info() failure discussed on the
mailing list.
--Stefan]

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-img.c