Skip to contentSkip to conversation

docs: add some clarification to xenstore-migration.md

PATCH Superseded Juergen Gross 2 participants 3 messages Feb 10, 2022 – Feb 16, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: add some clarification to xenstore-migration.md

The Xenstore migration document is missing the specification that a node record must be preceded by the record of its parent node in case of live update.

Add that missing part.

---
 docs/designs/xenstore-migration.md | 4 ++++
 1 file changed, 4 insertions(+)
docs/designs/xenstore-migration.md +4 -0
index 5f1155273e..39e31c984b 100644
@@ -316,6 +316,10 @@ a _committed_ node (globally visible in xenstored) or a _pending_ node (created
 or modified by a transaction for which there is also a `TRANSACTION_DATA`
 record previously present).
 
+In the live update case the _committed_ nodes must be in a top-down sequence,
+i.e. the first node needs to be `/`, and each other node in the stream must
+come _after_ its parent node.
+
 
 ```
     0       1       2       3    octet
Signature · 1 line
2.34.1
#1 lore raw

Hi Juergen,

Quoted 16 lines · Juergen Gross

The Xenstore migration document is missing the specification that a node record must be preceded by the record of its parent node in case of live update.

Add that missing part.

---
  docs/designs/xenstore-migration.md | 4 ++++
  1 file changed, 4 insertions(+)
docs/designs/xenstore-migration.md +0 -0
index 5f1155273e..39e31c984b 100644

docs/designs/xenstore-migration.md a _committed_ node (globally visible in xenstored) or a _pending_ node (created · line 321

Quoted 6 lines
docs/designs/xenstore-migration.md +3 -0
@@ -316,6 +316,10 @@ a _committed_ node (globally visible in xenstored) or a _pending_ node (created
  or modified by a transaction for which there is also a `TRANSACTION_DATA`
  record previously present).
 
+In the live update case the _committed_ nodes must be in a top-down sequence,
+i.e. the first node needs to be `/`, and each other node in the stream must
+come _after_ its parent node.

I would actually expect the same restriction to apply for the non-liveupdate case. I.e. we want the parent to either exist in the tree or the record for the parent to be before in the stream.

Cheers,

Signature · 1 line
Julien Grall
#2 lore raw
Quoted 14 lines · Julien Grall

Hi Juergen,

Quoted 11 lines · Juergen Gross

The Xenstore migration document is missing the specification that a node record must be preceded by the record of its parent node in case of live update.

Add that missing part.

---
  docs/designs/xenstore-migration.md | 4 ++++

  1 file changed, 4 insertions(+)
Quoted 15 lines
Quoted 5 lines
docs/designs/xenstore-migration.md +0 -0
index 5f1155273e..39e31c984b 100644
@@ -316,6 +316,10 @@ a _committed_ node (globally visible in 
Quoted 8 lines

xenstored) or a _pending_ node (created
  or modified by a transaction for which there is also a TRANSACTION_DATA record previously present).
+In the live update case the _committed_ nodes must be in a top-down sequence,
+i.e. the first node needs to be /, and each other node in the stream must
+come _after_ its parent node.

I would actually expect the same restriction to apply for the non-liveupdate case. I.e. we want the parent to either exist in the tree or the record for the parent to be before in the stream.

Hmm, true. I'll rephrase that.

Juergen