提交 b662d0b5 编写于 作者: P Peter Krempa

qemu: Support only raw volumes in qemuDomainBlockPeek

The API documents that it peeks into the VM disk. We can't do that
currently for non raw images so report an error.
上级 3956af49
......@@ -11328,6 +11328,12 @@ qemuDomainBlockPeek(virDomainPtr dom,
goto cleanup;
}
if (disk->src->format != VIR_STORAGE_FILE_RAW) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("peeking is supported only for RAW disks"));
goto cleanup;
}
if (qemuDomainStorageFileInit(driver, vm, disk->src) < 0)
goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册