提交 584ff194 编写于 作者: D Daniel Veillard

* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt

  when shutting down a xen domain, patch by John Levon
Daniel
上级 821dcf0f
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"));
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册