[PATCH v2] block: Improve backing file validation

2021-05-11 Thread Li Zhijian
se refcount bits: 16 corrupt: false ``` Generally, we don't expect to corrupte the source.raw anyway, while actually it does. Here we check their inode number instead of file name. Suggested-by: Daniel P. Berrangé Signed-off-by: Li Zhijian --- v2: utilize stat() instead of realpath()

[PATCH] block: Improve backing file validation

2021-05-09 Thread Li Zhijian
se refcount bits: 16 corrupt: false ``` Generally, we don't expect to corrupte the source.raw anyway, while actually it does. Here we validate the realpath of file instead the input string. Signed-off-by: Li Zhijian --- block.c | 46 +++--- 1 file ch

Re: [Qemu-block] COLO: how to flip a secondary to a primary?

2016-01-25 Thread Li Zhijian
On 01/26/2016 04:20 AM, Dr. David Alan Gilbert wrote: * Li Zhijian (lizhij...@cn.fujitsu.com) wrote: On 01/25/2016 09:32 AM, Wen Congyang wrote: f) I've not thought about the colo-proxy that much yet - I guess that existing connections need to keep their sequence number offset

Re: [Qemu-block] COLO: how to flip a secondary to a primary?

2016-01-24 Thread Li Zhijian
at is now the primary dont need to do anything > special. Yes, you are right. Hailiang or Zhijian can answer this question. Thanks Li Zhijian

Re: [Qemu-block] [Qemu-devel] [Patch v8 3/3] qmp: add monitor command to add/remove a child

2015-12-14 Thread Li Zhijian
quot;node": "new_node" } } +<- { "return": {} } + +Delete a quorum's node +-> { "execute": "x-blockdev-change", +"arguments": { "parent": "disk1", + "child": "children.2" } } +<- { "return": {} } + +EQMP + +{ .name = "query-named-block-nodes", .args_type = "", .mhandler.cmd_new = qmp_marshal_query_named_block_nodes, -- Best regards. Li Zhijian (8555)

Re: [Qemu-block] [Qemu-devel] [Patch v8 2/3] quorum: implement bdrv_add_child() and bdrv_del_child()

2015-12-14 Thread Li Zhijian
On 11/27/2015 02:06 PM, Wen Congyang wrote: Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 8 ++-- block/quorum.c| 124