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

Zhang Chen posted 1 patch 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211018085044.2788276-1-chen.zhang@intel.com
Maintainers: Xie Changlong <xiechanglong.d@gmail.com>, Wen Congyang <wencongyang2@huawei.com>
docs/block-replication.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] docs/block-replication.txt: Fix replication top-id command demo
Posted by Zhang Chen 2 years, 6 months ago
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


RE: [PATCH] docs/block-replication.txt: Fix replication top-id command demo
Posted by Zhang, Chen 2 years, 5 months ago
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


Re: [PATCH] docs/block-replication.txt: Fix replication top-id command demo
Posted by Laurent Vivier 2 years, 4 months ago
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>

Re: [PATCH] docs/block-replication.txt: Fix replication top-id command demo
Posted by Laurent Vivier 2 years, 4 months ago
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