mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
qemu: clarify message about block peek format restriction
Include the actual disk format in the error message to help the user see what is wrong. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
bb57a6a6bc
commit
47a1ca6e2c
@ -11544,8 +11544,9 @@ qemuDomainBlockPeek(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (disk->src->format != VIR_STORAGE_FILE_RAW) {
|
if (disk->src->format != VIR_STORAGE_FILE_RAW) {
|
||||||
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
|
||||||
_("peeking is supported only for RAW disks"));
|
_("peeking is only supported for disk with 'raw' format not '%s'"),
|
||||||
|
virStorageFileFormatTypeToString(disk->src->format));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user