From: Yu Zhiguo <yuzg@cn.fujitsu.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] xl: Add option '-p' for command 'xl create'
Date: Mon, 26 Apr 2010 12:10:28 +0800 [thread overview]
Message-ID: <4BD51234.6010201@cn.fujitsu.com> (raw)
# HG changeset patch
# User Yu Zhiguo <yuzg@cn.fujitsu.com>
# Date 1272283460 -28800
# Node ID 451e2bd1554b099f7d3c65f77841320e0e67d102
# Parent c87ec146229ab2255ecdf005b862b943b1a5112e
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@cn.fujitsu.com>
diff -r c87ec146229a -r 451e2bd1554b tools/libxl/xl.c
--- a/tools/libxl/xl.c Fri Apr 23 15:04:26 2010 +0100
+++ b/tools/libxl/xl.c Mon Apr 26 20:04:20 2010 +0800
@@ -1112,6 +1112,7 @@
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)
{
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 @@
}
filename = argv[optind];
- rc = create_domain(debug, daemonize, filename, NULL, 0,
+ rc = create_domain(debug, daemonize, filename, NULL, paused,
-1, 0);
exit(-rc);
}
reply other threads:[~2010-04-26 4:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BD51234.6010201@cn.fujitsu.com \
--to=yuzg@cn.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).