Re: [Xen-devel] [PATCH v4 04/12] xenstore: add per-node generation counter

2017-01-09 Thread Juergen Gross
On 09/01/17 17:10, Jan Beulich wrote: On 09.01.17 at 17:02, wrote: >> On 09/01/17 15:38, Jan Beulich wrote: >> On 05.12.16 at 08:48, wrote: --- a/tools/xenstore/include/xenstore_lib.h +++ b/tools/xenstore/include/xenstore_lib.h @@ -44,6 +44,7 @@ struct xs_permissions

Re: [Xen-devel] [PATCH v4 04/12] xenstore: add per-node generation counter

2017-01-09 Thread Jan Beulich
>>> On 09.01.17 at 17:02, wrote: > On 09/01/17 15:38, Jan Beulich wrote: > On 05.12.16 at 08:48, wrote: >>> --- a/tools/xenstore/include/xenstore_lib.h >>> +++ b/tools/xenstore/include/xenstore_lib.h >>> @@ -44,6 +44,7 @@ struct xs_permissions >>> >>> /* Header of the node record in tdb. *

Re: [Xen-devel] [PATCH v4 04/12] xenstore: add per-node generation counter

2017-01-09 Thread Juergen Gross
On 09/01/17 15:38, Jan Beulich wrote: On 05.12.16 at 08:48, wrote: >> --- a/tools/xenstore/include/xenstore_lib.h >> +++ b/tools/xenstore/include/xenstore_lib.h >> @@ -44,6 +44,7 @@ struct xs_permissions >> >> /* Header of the node record in tdb. */ >> struct xs_tdb_record_hdr { >> +u

Re: [Xen-devel] [PATCH v4 04/12] xenstore: add per-node generation counter

2017-01-09 Thread Jan Beulich
>>> On 05.12.16 at 08:48, wrote: > --- a/tools/xenstore/include/xenstore_lib.h > +++ b/tools/xenstore/include/xenstore_lib.h > @@ -44,6 +44,7 @@ struct xs_permissions > > /* Header of the node record in tdb. */ > struct xs_tdb_record_hdr { > + uint64_t generation; > uint32_t num_perm

[Xen-devel] [PATCH v4 04/12] xenstore: add per-node generation counter

2016-12-04 Thread Juergen Gross
In order to be able to support reading the list of a node's children in multiple chunks (needed for list sizes > 4096 bytes) without having to allocate a temporary buffer we need some kind of generation counter for each node. This will help to recognize a node has changed between reading two chunks