]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Ensure 'qemu-img resize' size arg is a 512 multiple
authorChristophe Fergeau <cfergeau@redhat.com>
Tue, 14 May 2013 13:48:21 +0000 (15:48 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 12 Jun 2013 19:11:45 +0000 (15:11 -0400)
commit364bbdc4cc274abaeadef322bc99703a626574d7
tree846eef539fd9fd37b8aa7110ba8119414f1dc887
parent69838772ccc2c281825daadcb428cb5951bfa81d
storage: Ensure 'qemu-img resize' size arg is a 512 multiple

qemu-img resize will fail with "The new size must be a multiple of 512"
if libvirt doesn't round it first.
This fixes rhbz#951495

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
(cherry picked from commit 9a8f39d097448b2b43c4a05d0edc213eacfc9ea6)
src/internal.h
src/libvirt.c
src/storage/storage_backend_fs.c