]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/xend_internal.c src/xs_internal.c: use poweroff instead of halt
authorDaniel Veillard <veillard@redhat.com>
Thu, 4 Sep 2008 09:07:42 +0000 (09:07 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 4 Sep 2008 09:07:42 +0000 (09:07 +0000)
  when shutting down a xen domain, patch by John Levon
Daniel

ChangeLog
src/xend_internal.c
src/xs_internal.c

index c0adc50d4b8c88bb2958cb9499191ca9317c3c0a..a17aedc1e2843d8c17e00adb884a6d563bae89da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 124ee8b5fc2596b6d9b120b96eda42539b2d78e8..20162d8beedb5d1e68c8ae3bc7d507505fb9afa8 100644 (file)
@@ -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);
 }
 
 /**
index 551d904627a3a4109d4f0c60dfd9b7378c48aac3..316604a9795bd84b3878ceee1a63be78907f358b 100644 (file)
@@ -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"));
 }
 
 /**