[PATCH 2/5] test_driver: Implement virDomainDetachDeviceAlias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Luke Yue <lukedyue@xxxxxxxxx>
---
 src/test/test_driver.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 2ebdbaa604..e2463876fa 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -9721,6 +9721,16 @@ testDomainDetachDeviceFlags(virDomainPtr dom,
     return testDomainChgDevice(dom, VIR_DOMAIN_DEVICE_ACTION_DETACH,
                                xml, NULL, flags);
 }
+
+static int
+testDomainDetachDeviceAlias(virDomainPtr dom,
+                            const char *alias,
+                            unsigned int flags)
+{
+    return testDomainChgDevice(dom, VIR_DOMAIN_DEVICE_ACTION_DETACH,
+                               NULL, alias, flags);
+}
+
 /*
  * Test driver
  */
@@ -9810,6 +9820,7 @@ static virHypervisorDriver testHypervisorDriver = {
     .domainFSFreeze = testDomainFSFreeze, /* 5.7.0 */
     .domainFSThaw = testDomainFSThaw, /* 5.7.0 */
     .domainFSTrim = testDomainFSTrim, /* 5.7.0 */
+    .domainDetachDeviceAlias = testDomainDetachDeviceAlias, /* 7.7.0 */
     .domainDetachDeviceFlags = testDomainDetachDeviceFlags, /* 7.7.0 */
     .domainGetAutostart = testDomainGetAutostart, /* 0.3.2 */
     .domainSetAutostart = testDomainSetAutostart, /* 0.3.2 */
-- 
2.32.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux