mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
destroy: Implement internal API for phyp driver
This commit is contained in:
parent
ab5eb92bbd
commit
e4e69b4bb2
@ -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);
|
||||
@ -3530,6 +3533,12 @@ cleanup:
|
||||
return result;
|
||||
}
|
||||
|
||||
static int
|
||||
phypDomainDestroy(virDomainPtr dom)
|
||||
{
|
||||
return phypDomainDestroyFlags(dom, 0);
|
||||
}
|
||||
|
||||
static int
|
||||
phypBuildLpar(virConnectPtr conn, virDomainDefPtr def)
|
||||
{
|
||||
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user