From: Eric Chanudet <eric.chanudet@citrix.com>
To: xen-devel@lists.xensource.com
Cc: Stefano Stabellini <stefano.stabellini@citrix.com>
Subject: [PATCH 7 of 7] xl: hap parameter handling in configuration file
Date: Fri, 04 Jun 2010 15:30:19 +0100 [thread overview]
Message-ID: <a72fe63122f39e7fc3b7.1275661819@eric.cam.xci-test.com> (raw)
In-Reply-To: <patchbomb.1275661812@eric.cam.xci-test.com>
Get hap parameter from configuration file.
hap parameter can be set to 1 or 0 (default).
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -466,7 +466,10 @@ static void parse_config_data(const char
!strncmp(buf, "hvm", strlen(buf)))
c_info->hvm = 1;
- /* hap is missing */
+ c_info->hap = 0;
+ if (!xlu_cfg_get_string (config, "hap", &buf))
+ c_info->hap = (buf[0] == '1');
+
if (!xlu_cfg_get_string (config, "name", &buf))
c_info->name = strdup(buf);
else
prev parent reply other threads:[~2010-06-04 14:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 14:30 [PATCH 0 of 7] xl: network2 commands, hap parameter and block commands fixes Eric Chanudet
2010-06-04 14:30 ` [PATCH 1 of 7] xl: network2-attach command Eric Chanudet
2010-06-04 14:30 ` [PATCH 2 of 7] xl: network2-list command Eric Chanudet
2010-06-04 14:30 ` [PATCH 3 of 7] xl: network2-detach command Eric Chanudet
2010-06-04 14:30 ` [PATCH 4 of 7] xl: block-attach command line parsing Eric Chanudet
2010-06-04 14:30 ` [PATCH 5 of 7] xl: block-list " Eric Chanudet
2010-06-04 14:30 ` [PATCH 6 of 7] xl: block-detach " Eric Chanudet
2010-06-04 14:30 ` Eric Chanudet [this message]
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=a72fe63122f39e7fc3b7.1275661819@eric.cam.xci-test.com \
--to=eric.chanudet@citrix.com \
--cc=stefano.stabellini@citrix.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).