From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: ian.jackson@eu.citrix.com, ian.campbell@citrix.com,
xen-devel@lists.xen.org
Subject: Re: [PATCH for-4.5 0/2] xl/libxl: return and print partial config
Date: Wed, 12 Nov 2014 14:54:00 -0500 [thread overview]
Message-ID: <5463BAD8.9090407@oracle.com> (raw)
In-Reply-To: <1415811865-19981-1-git-send-email-wei.liu2@citrix.com>
On 11/12/2014 12:04 PM, Wei Liu wrote:
> This small series change the behavior of libxl_retrieve_domain_configuration,
> to make it continue to retrieve information from xenstore even if JSON template
> is not available.
>
> This change of API behaviour is only internal. Conceptually speaking, any
> non-zero return value means d_config is partially filled. The chanage just
> makes it fill in more information (xenstore entries) than before (empty).
> Caller can still expect zero on success and non-zero on error and act
> accordingly.
>
> "xl list -l" is now changed to print out the partial configuration, since it
> needs to be consistent with the short output.
>
> Wei.
>
> Wei Liu (2):
> libxl: continue when encounter ERROR_JSON_CONFIG_EMPTY
> xl: print out partial configuration in long mode of list command
>
> tools/libxl/libxl.c | 6 +++++-
> tools/libxl/xl_cmdimpl.c | 6 ++----
> 2 files changed, 7 insertions(+), 5 deletions(-)
>
It seem some other places may need fix too. Here is the test result:
# xl list -l
libxl: error: libxl.c:4844:libxl__get_memory_target: cannot get target memory info from /local/domain/1/memory/target
: No such file or directory
libxl: error: libxl.c:6582:libxl_retrieve_domain_configuration: fail to get memory target for domain 1
[
{
"domid": 0,
"config": {
"c_info": {
"type": "pv",
"name": "Domain-0"
},
"b_info": {
"max_memkb": 876544,
"target_memkb": 876543,
"sched_params": {
},
"type.pv": {
}
}
}
},
{
"domid": 1,
"config": {
"c_info": {
"name": "0004fb00000600008b1d33e2704548b7--incoming",
"uuid": "0004fb00-0006-0000-8b1d-33e2704548b7"
},
"b_info": {
"sched_params": {
},
"type.invalid": {
}
}
}
}
]
Thanks,
Zhigang
next prev parent reply other threads:[~2014-11-12 19:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 17:04 [PATCH for-4.5 0/2] xl/libxl: return and print partial config Wei Liu
2014-11-12 17:04 ` [PATCH for-4.5 1/2] libxl: continue when encounter ERROR_JSON_CONFIG_EMPTY Wei Liu
2014-11-14 10:52 ` Ian Campbell
2014-11-14 10:55 ` Ian Campbell
2014-11-14 11:10 ` Wei Liu
2014-11-14 11:19 ` Ian Campbell
2014-11-17 8:58 ` Wei Liu
2014-11-12 17:04 ` [PATCH for-4.5 2/2] xl: print out partial configuration in long mode of list command Wei Liu
2014-11-14 9:59 ` Ian Campbell
2014-11-14 10:09 ` Wei Liu
2014-11-14 10:22 ` Ian Campbell
2014-11-21 18:04 ` Zhigang Wang
2014-11-21 18:09 ` Konrad Rzeszutek Wilk
2014-11-21 18:14 ` Wei Liu
2014-11-21 18:25 ` Zhigang Wang
2014-11-14 10:53 ` Ian Campbell
2014-11-14 11:03 ` Wei Liu
2014-11-12 17:18 ` [PATCH for-4.5 0/2] xl/libxl: return and print partial config Konrad Rzeszutek Wilk
2014-11-12 17:28 ` Wei Liu
2014-11-13 18:25 ` Konrad Rzeszutek Wilk
2014-11-12 19:54 ` Zhigang Wang [this message]
2014-11-12 20:44 ` Wei Liu
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=5463BAD8.9090407@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.