提交 47a1ca6e 编写于 作者: D Daniel P. Berrangé

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: NDaniel P. Berrangé <berrange@redhat.com>
上级 bb57a6a6
......@@ -11544,8 +11544,9 @@ qemuDomainBlockPeek(virDomainPtr dom,
}
if (disk->src->format != VIR_STORAGE_FILE_RAW) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("peeking is supported only for RAW disks"));
virReportError(VIR_ERR_OPERATION_UNSUPPORTED,
_("peeking is only supported for disk with 'raw' format not '%s'"),
virStorageFileFormatTypeToString(disk->src->format));
goto cleanup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册