1 Star 0 Fork 71

lixianglai/libvirt_openeuler

forked from src-openEuler/libvirt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodedev-delete-mdev.patch 965 Bytes
一键复制 编辑 原始数据 按行查看 历史
MaYunlong 提交于 2024-03-27 01:22 . nodedev: delete mdev
From b782178492141454fc263040708dffa039e7de2a Mon Sep 17 00:00:00 2001
From: mayunlong <mayunlong6@huawei.com>
Date: Wed, 27 Mar 2024 01:08:02 +0800
Subject: [PATCH] nodedev: delete mdev
mdev is deleted because it has no application scenario
Signed-off-by: mayunlong <mayunlong6@huawei.com>
---
src/node_device/node_device_driver.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c
index a59cd08..f2c3b36 100644
--- a/src/node_device/node_device_driver.c
+++ b/src/node_device/node_device_driver.c
@@ -850,6 +850,10 @@ nodeDeviceCreateXMLMdev(virConnectPtr conn,
{
g_autofree char *uuid = NULL;
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+ _("Unsupported device type"));
+ return NULL;
+
if (!def->parent) {
virReportError(VIR_ERR_XML_ERROR, "%s",
_("cannot create a mediated device without a parent"));
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lixianglai/libvirt_openeuler.git
git@gitee.com:lixianglai/libvirt_openeuler.git
lixianglai
libvirt_openeuler
libvirt_openeuler
master

搜索帮助