]> xenbits.xensource.com Git - libvirt.git/commit
storage: Add --shrink to qemu-img command when shrinking vol
authorJohn Ferlan <jferlan@redhat.com>
Fri, 17 Aug 2018 19:53:29 +0000 (15:53 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 24 Aug 2018 13:14:13 +0000 (09:14 -0400)
commitb04d1b6a35f9fb826f7bb83fdac364a127ec75ca
treef8121dd5788ce0f5f6870ff43380b76448d7ecd8
parentb4833917f12a0ffa4b5957ef77edea737cb8ad58
storage: Add --shrink to qemu-img command when shrinking vol

https://bugzilla.redhat.com/show_bug.cgi?id=1613746

When shrinking the capacity of a qcow2 or luks volume using
the qemu-img program, the --shrink qualifier must be added.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/storage/storage_util.c