xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] xenstore: support reading directory with many children
@ 2016-10-25  5:52 Juergen Gross
  2016-10-25  5:52 ` [PATCH 1/2] xenstore: add support for " Juergen Gross
  2016-10-25  5:52 ` [PATCH 2/2] xenstore: support XS_DIRECTORY_PART in libxenstore Juergen Gross
  0 siblings, 2 replies; 9+ messages in thread
From: Juergen Gross @ 2016-10-25  5:52 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, wei.liu2, andrew.cooper3, ian.jackson,
	david.vrabel, jbeulich

Reading the children list of a xenstore node with the length of that
list exceeding 4096 bytes is currently not possible. This can be a
problem for a large host with a huge number of domains as Xen tools
will no longer by capable to scan some directories of xenstore (e.g.
/local/domain).

This small patch series adds a new xs wire command to read a directory
in multiple chunks. libxenstore is modified in a compatible way to
show an unmodified result in case xenstored doesn't support the new
command.

The patch set has been verified to work by using the following shell script:

xenstore-write /test "test"

for i in `seq 100 500`
do
    xenstore-write /test/entry_with_very_long_name_$i $i
done

xenstore-ls
xenstore-rm /test


Juergen Gross (2):
  xenstore: add support for reading directory with many children
  xenstore: support XS_DIRECTORY_PART in libxenstore

 tools/xenstore/xenstored_core.c        |  4 ++
 tools/xenstore/xenstored_transaction.c | 57 ++++++++++++++++++++++++++
 tools/xenstore/xenstored_transaction.h |  1 +
 tools/xenstore/xs.c                    | 74 ++++++++++++++++++++++++++++++----
 xen/include/public/io/xs_wire.h        |  1 +
 5 files changed, 129 insertions(+), 8 deletions(-)

-- 
2.6.6


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-10-25 14:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-25  5:52 [PATCH 0/2] xenstore: support reading directory with many children Juergen Gross
2016-10-25  5:52 ` [PATCH 1/2] xenstore: add support for " Juergen Gross
2016-10-25  9:06   ` Jan Beulich
     [not found]   ` <580F3CC902000078001195F3@suse.com>
2016-10-25 11:41     ` Juergen Gross
2016-10-25 13:20       ` Jan Beulich
     [not found]       ` <580F785502000078001197C7@suse.com>
2016-10-25 13:47         ` Juergen Gross
2016-10-25 14:02           ` Jan Beulich
     [not found]           ` <580F820E0200007800119823@suse.com>
2016-10-25 14:48             ` Juergen Gross
2016-10-25  5:52 ` [PATCH 2/2] xenstore: support XS_DIRECTORY_PART in libxenstore Juergen Gross

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).