15 Apr
2026
15 Apr
'26
9:59 a.m.
On 4/15/26 10:19, Peter Krempa via Devel wrote:
From: Peter Krempa <pkrempa@redhat.com>
If a qcow2 image uses a 'data-file' on a local block device we can still honour VIR_DOMAIN_BLOCK_RESIZE_CAPACITY but use the capacity of the data-file instead.
The code is modified to first pick the virStorageSource which we'll probe for size based on the config of the VM and uses to determine the new size.
Resolves: https://redhat.atlassian.net/browse/RHEL-155809 Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- src/qemu/qemu_driver.c | 49 ++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 19 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Michal