|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 0/2] xenstore: support reading directory with many children
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@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |