WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xl: Add option '-p' for command 'xl creat

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xl: Add option '-p' for command 'xl create'
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Apr 2010 03:25:13 -0700
Delivery-date: Wed, 28 Apr 2010 03:25:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1272261164 -3600
# Node ID f766f2142a8515d1dc71783355dc4fc1813d95c4
# Parent  59523ceaff36080224d576779fa7d3f9bcf1106a
xl: Add option '-p' for command 'xl create'

Add option '-p' for command 'xl create', and update
the help info.
* -p Leave the domain paused after it is created.

Signed-off-by: Yu Zhiguo <yuzg@xxxxxxxxxxxxxx>
---
 tools/libxl/xl.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff -r 59523ceaff36 -r f766f2142a85 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Mon Apr 26 06:52:13 2010 +0100
+++ b/tools/libxl/xl.c  Mon Apr 26 06:52:44 2010 +0100
@@ -1112,6 +1112,7 @@ static void help(char *command)
         printf("Create a domain based on <ConfigFile>.\n\n");
         printf("Options:\n\n");
         printf("-h                     Print this help.\n");
+        printf("-p                     Leave the domain paused after it is 
created.\n");
         printf("-d                     Enable debug messages.\n");
         printf("-e                     Do not wait in the background for the 
death of the domain.\n");
     } else if(!strcmp(command, "list")) {
@@ -2290,11 +2291,14 @@ int main_create(int argc, char **argv)
 int main_create(int argc, char **argv)
 {
     char *filename = NULL;
-    int debug = 0, daemonize = 1;
+    int paused = 0, debug = 0, daemonize = 1;
     int opt, rc;
 
-    while ((opt = getopt(argc, argv, "hde")) != -1) {
+    while ((opt = getopt(argc, argv, "hdep")) != -1) {
         switch (opt) {
+        case 'p':
+            paused = 1;
+            break;
         case 'd':
             debug = 1;
             break;
@@ -2316,7 +2320,7 @@ int main_create(int argc, char **argv)
     }
 
     filename = argv[optind];
-    rc = create_domain(debug, daemonize, filename, NULL, 0,
+    rc = create_domain(debug, daemonize, filename, NULL, paused,
                        -1, 0);
     exit(-rc);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xl: Add option '-p' for command 'xl create', Xen patchbot-unstable <=