Skip to contentSkip to conversation

docs/block-replication.txt: Fix replication top-id command demo

PATCH Applied Zhang Chen 2 participants 4 messages Oct 18, 2021 – Dec 17, 2021

lore
Share & tools
lore

Zhang Chen

author
#0 lore raw

PATCH 1/1 docs/block-replication.txt: Fix replication top-id command demo

This demo not correct, the original childs1 can't pass the the bdrv_is_root_node check in replcation_start(). Keep consistent with docs/COLO-FT.txt

---
 docs/block-replication.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/block-replication.txt +1 -1
index 108e9166a8..66ad540676 100644
@@ -179,7 +179,7 @@ Primary:
 
 Secondary:
   -drive if=none,driver=raw,file.filename=1.raw,id=colo1 \
-  -drive if=none,id=childs1,driver=replication,mode=secondary,top-id=childs1
+  -drive if=none,id=childs1,driver=replication,mode=secondary,top-id=top-disk1
          file.file.filename=active_disk.qcow2,\
          file.driver=qcow2,\
          file.backing.file.filename=hidden_disk.qcow2,\
Signature · 1 line
2.25.1
#1 lore raw

Ping... and add more people.
The original demo can't boot block-replication with COLO.

Thanks
Chen

Quoted 37 lines

-----Original Message-----
From: Zhang, Chen <[email protected]>
Sent: Monday, October 18, 2021 4:51 PM
To: Xie Changlong <[email protected]>; Wen Congyang <[email protected]>; [email protected]
Cc: Zhang, Chen <[email protected]>; qemu-dev <qemu- [email protected]>; Laurent Vivier <[email protected]>; Lukas Straub <[email protected]>
Subject: [PATCH] docs/block-replication.txt: Fix replication top-id command demo

This demo not correct, the original childs1 can't pass the the bdrv_is_root_node check in replcation_start().
Keep consistent with docs/COLO-FT.txt

---
 docs/block-replication.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/block-replication.txt index renamed from docs/block-replication.txt +0 -0

108e9166a8..66ad540676 100644

docs/block-replication.txt +0 -1
@@ -179,7 +179,7 @@ Primary:
 
 Secondary:
   -drive if=none,driver=raw,file.filename=1.raw,id=colo1 \
-  -drive if=none,id=childs1,driver=replication,mode=secondary,top-

id=childs1
+ -drive
+ if=none,id=childs1,driver=replication,mode=secondary,top-id=top-disk1

          file.file.filename=active_disk.qcow2,\
          file.driver=qcow2,\
          file.backing.file.filename=hidden_disk.qcow2,\

--
2.25.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Zhang Chen

Le 18/10/2021 à 10:50, Zhang Chen a écrit :

Quoted 15 lines

This demo not correct, the original childs1 can't pass the the bdrv_is_root_node check in replcation_start(). Keep consistent with docs/COLO-FT.txt

---
  docs/block-replication.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/block-replication.txt +0 -0
index 108e9166a8..66ad540676 100644

docs/block-replication.txt Primary: · line 185

Quoted 8 lines
docs/block-replication.txt +1 -1
@@ -179,7 +179,7 @@ Primary:
 
  Secondary:
    -drive if=none,driver=raw,file.filename=1.raw,id=colo1 \
-  -drive if=none,id=childs1,driver=replication,mode=secondary,top-id=childs1
+  -drive if=none,id=childs1,driver=replication,mode=secondary,top-id=top-disk1
           file.file.filename=active_disk.qcow2,\
           file.driver=qcow2,\
           file.backing.file.filename=hidden_disk.qcow2,\
#3 lore raw
In reply to Zhang Chen

Le 18/10/2021 à 10:50, Zhang Chen a écrit :

Quoted 15 lines

This demo not correct, the original childs1 can't pass the the bdrv_is_root_node check in replcation_start(). Keep consistent with docs/COLO-FT.txt

---
  docs/block-replication.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/block-replication.txt +0 -0
index 108e9166a8..66ad540676 100644

docs/block-replication.txt Primary: · line 185

Quoted 8 lines
docs/block-replication.txt +1 -1
@@ -179,7 +179,7 @@ Primary:
 
  Secondary:
    -drive if=none,driver=raw,file.filename=1.raw,id=colo1 \
-  -drive if=none,id=childs1,driver=replication,mode=secondary,top-id=childs1
+  -drive if=none,id=childs1,driver=replication,mode=secondary,top-id=top-disk1
           file.file.filename=active_disk.qcow2,\
           file.driver=qcow2,\
           file.backing.file.filename=hidden_disk.qcow2,\

Applied to my trivial-patches branch.

Thanks,
Laurent