86b3439f创建于 2024年4月11日历史提交
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