diff mbox series

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

Message ID 20211018085044.2788276-1-chen.zhang@intel.com (mailing list archive)
State New, archived
Headers show
Series docs/block-replication.txt: Fix replication top-id command demo | expand

Commit Message

Zhang Chen Oct. 18, 2021, 8:50 a.m. UTC
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

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
---
 docs/block-replication.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Zhang Chen Nov. 18, 2021, 6:01 a.m. UTC | #1
Ping... and add more people.
The original demo can't boot block-replication with COLO.

Thanks
Chen

> -----Original Message-----
> From: Zhang, Chen <chen.zhang@intel.com>
> Sent: Monday, October 18, 2021 4:51 PM
> To: Xie Changlong <xiechanglong.d@gmail.com>; Wen Congyang
> <wencongyang2@huawei.com>; qemu-trivial@nongnu.org
> Cc: Zhang, Chen <chen.zhang@intel.com>; qemu-dev <qemu-
> devel@nongnu.org>; Laurent Vivier <laurent@vivier.eu>; Lukas Straub
> <lukasstraub2@web.de>
> 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
> 
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> ---
>  docs/block-replication.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/docs/block-replication.txt b/docs/block-replication.txt index
> 108e9166a8..66ad540676 100644
> --- a/docs/block-replication.txt
> +++ b/docs/block-replication.txt
> @@ -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
Laurent Vivier Dec. 17, 2021, 10:25 a.m. UTC | #2
Le 18/10/2021 à 10:50, Zhang Chen a écrit :
> 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
> 
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> ---
>   docs/block-replication.txt | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/docs/block-replication.txt b/docs/block-replication.txt
> index 108e9166a8..66ad540676 100644
> --- a/docs/block-replication.txt
> +++ b/docs/block-replication.txt
> @@ -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,\
> 

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Laurent Vivier Dec. 17, 2021, 10:35 a.m. UTC | #3
Le 18/10/2021 à 10:50, Zhang Chen a écrit :
> 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
> 
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>
> ---
>   docs/block-replication.txt | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/docs/block-replication.txt b/docs/block-replication.txt
> index 108e9166a8..66ad540676 100644
> --- a/docs/block-replication.txt
> +++ b/docs/block-replication.txt
> @@ -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
diff mbox series

Patch

diff --git a/docs/block-replication.txt b/docs/block-replication.txt
index 108e9166a8..66ad540676 100644
--- a/docs/block-replication.txt
+++ b/docs/block-replication.txt
@@ -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,\