All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.5 0/2] xl/libxl: return and print partial config
@ 2014-11-12 17:04 Wei Liu
  2014-11-12 17:04 ` [PATCH for-4.5 1/2] libxl: continue when encounter ERROR_JSON_CONFIG_EMPTY Wei Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Wei Liu @ 2014-11-12 17:04 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, zhigang.x.wang, ian.jackson, ian.campbell

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-11-21 18:25 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-11-12 20:44   ` Wei Liu

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.