]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainBlockResize: Implement VIR_DOMAIN_BLOCK_RESIZE_CAPACITY
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Dec 2023 14:44:36 +0000 (15:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 14 Dec 2023 15:11:07 +0000 (16:11 +0100)
commitd09f46a9fbf8d6c2b2c28d5f2b54cfeb487765f4
tree7b22c343d4b38d23f4249c20e18175bb92a006ba
parent04adeac76e0ecda7f74ad0ea136b02b7f84f540e
qemuDomainBlockResize: Implement VIR_DOMAIN_BLOCK_RESIZE_CAPACITY

Resizing of block-backed storage requires the user to pass the exact
capacity of the device. Implement code which will query it instead so
the user doesn't need to do that.

Closes: https://gitlab.com/libvirt/libvirt/-/issues/449
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c