From: Wei Liu Subject: [PATCH for-4.5 0/2] xl/libxl: return and print partial config Date: Wed, 12 Nov 2014 17:04:23 +0000 Message-ID: <1415811865-19981-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , zhigang.x.wang@oracle.com, ian.jackson@eu.citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org 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(-) -- 1.7.10.4