* 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:
Daniel Veillard 2008-09-04 09:07:42 +00:00
parent 821dcf0ff7
commit 584ff19452
3 changed files with 7 additions and 2 deletions

View File

@ -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> Thu Sep 4 10:13:43 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/qemu_driver.c: switch flags to unsigned by James Morris * src/qemu_driver.c: switch flags to unsigned by James Morris

View File

@ -2884,7 +2884,7 @@ xenDaemonDomainShutdown(virDomainPtr domain)
} }
if (domain->id < 0) if (domain->id < 0)
return(-1); 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);
} }
/** /**

View File

@ -654,7 +654,7 @@ xenStoreDomainShutdown(virDomainPtr domain)
* this is very hackish, the domU kernel probes for a special * this is very hackish, the domU kernel probes for a special
* node in the xenstore and launch the shutdown command if found. * node in the xenstore and launch the shutdown command if found.
*/ */
return(virDomainDoStoreWrite(domain, "control/shutdown", "halt")); return(virDomainDoStoreWrite(domain, "control/shutdown", "poweroff"));
} }
/** /**