[PATCH v2 08/13] destroy: Implement internal API for phyp driver

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

 



---
 src/phyp/phyp_driver.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index 2489063..613ba9d 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -3497,7 +3497,8 @@ phypDomainGetState(virDomainPtr dom,
 }
 
 static int
-phypDomainDestroy(virDomainPtr dom)
+phypDomainDestroyFlags(virDomainPtr dom,
+                       unsigned int flags)
 {
     int result = -1;
     ConnectionData *connection_data = dom->conn->networkPrivateData;
@@ -3509,6 +3510,8 @@ phypDomainDestroy(virDomainPtr dom)
     char *ret = NULL;
     virBuffer buf = VIR_BUFFER_INITIALIZER;
 
+    virCheckFlags(0, -1);
+
     virBufferAddLit(&buf, "rmsyscfg");
     if (system_type == HMC)
         virBufferAsprintf(&buf, " -m %s", managed_system);
@@ -3531,6 +3534,12 @@ cleanup:
 }
 
 static int
+phypDomainDestroy(virDomainPtr dom)
+{
+    return phypDomainDestroyFlags(dom, 0);
+}
+
+static int
 phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
 {
     int result = -1;
@@ -3763,6 +3772,7 @@ static virDriver phypDriver = {
     .domainShutdown = phypDomainShutdown, /* 0.7.0 */
     .domainReboot = phypDomainReboot, /* 0.9.1 */
     .domainDestroy = phypDomainDestroy, /* 0.7.3 */
+    .domainDestroyFlags = phypDomainDestroyFlags, /* 0.9.4 */
     .domainGetInfo = phypDomainGetInfo, /* 0.7.0 */
     .domainGetState = phypDomainGetState, /* 0.9.2 */
     .domainSetVcpus = phypDomainSetCPU, /* 0.7.3 */
-- 
1.7.5.rc3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[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]