diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 15a36fce4aee5f930abb1439cf171aa848ac7d70..eac510feebd09efb34533e188d320b8b79bea850 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -11800,7 +11800,11 @@ qemuDomainGetBlockInfo(virDomainPtr dom, info->allocation = entry->physical; } else { - info->allocation = entry->wr_highest_offset; + if (virStorageSourceGetActualType(disk->src) == VIR_STORAGE_TYPE_FILE && + disk->src->format == VIR_STORAGE_FILE_QCOW2) + info->allocation = entry->physical; + else + info->allocation = entry->wr_highest_offset; } if (entry->physical) {