提交 8c430376 编写于 作者: P Peter Krempa

qemu: block: forbid creation of storage sources with <slice>

Specifically creating such images via libvirt during blockjobs would
be much more hassle than it's worth. Just forbid them for now.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 a6eeda98
......@@ -2529,6 +2529,12 @@ qemuBlockStorageSourceCreate(virDomainObjPtr vm,
int ret = -1;
int rc;
if (src->sliceStorage) {
virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
_("creation of images with slice type='storage' is not supported"));
return -1;
}
if (qemuDomainObjEnterMonitorAsync(priv->driver, vm, asyncJob) < 0)
goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册