mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
when shutting down a xen domain, patch by John Levon Daniel
This commit is contained in:
parent
821dcf0ff7
commit
584ff19452
@ -1,3 +1,8 @@
|
||||
Thu Sep 4 11:05:59 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
|
||||
when shutting down a xen domain, patch by John Levon
|
||||
|
||||
Thu Sep 4 10:13:43 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: switch flags to unsigned by James Morris
|
||||
|
@ -2884,7 +2884,7 @@ xenDaemonDomainShutdown(virDomainPtr domain)
|
||||
}
|
||||
if (domain->id < 0)
|
||||
return(-1);
|
||||
return xend_op(domain->conn, domain->name, "op", "shutdown", "reason", "halt", NULL);
|
||||
return xend_op(domain->conn, domain->name, "op", "shutdown", "reason", "poweroff", NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -654,7 +654,7 @@ xenStoreDomainShutdown(virDomainPtr domain)
|
||||
* this is very hackish, the domU kernel probes for a special
|
||||
* node in the xenstore and launch the shutdown command if found.
|
||||
*/
|
||||
return(virDomainDoStoreWrite(domain, "control/shutdown", "halt"));
|
||||
return(virDomainDoStoreWrite(domain, "control/shutdown", "poweroff"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user