block: modify top-id's comments
PATCH 1/1 block: modify top-id's comments
Kevin Wolf's advice:
http://lists.gnu.org/archive/html/qemu-devel/2016-09/msg02391.html
--- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
qapi/block-core.json +2 -1
@@ -2184,7 +2184,8 @@ # @mode: the replication mode # # @top-id: #optional In secondary mode, node name or device ID of the root -# node who owns the replication node chain. Ignored in primary mode. +# node who owns the replication node chain. Must not be given in +# primary mode. # # Since: 2.8 ##
Signature · 1 line
2.7.4
Quoted 2 lines · Wang WeiWei
Kevin Wolf's advice:
http://lists.gnu.org/archive/html/qemu-devel/2016-09/msg02391.html
IIUC, what Stefan meant is to write a simple descriptive commit message that explains why this change is necessary -- the above URL might have context, but having it spelled out in the Git commit message will be useful when someone is examining Git history offline.
I think Stefan was looking for something like (came up with this after reading the above thread):
QAPI: BlockdevOptionsReplication: Clarify 'top-id' parameter usage
In primary mode, the replication driver will ignore 'top-id' parameter, thus it must not be supplied. Explicitly spell that out in the QAPI schema for BlockdevOptionsReplication.
Quoted 29 lines
Signed-off-by Wen Congyang <[email protected]>Signed-off-by Changlong Xie <[email protected]>Signed-off-by Wang WeiWei <[email protected]>Signed-off-by zhanghailiang <[email protected]>Signed-off-by Gonglei <[email protected]>--- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)qapi/block-core.json +2
-1@@ -2184,7 +2184,8 @@ # @mode: the replication mode # # @top-id: #optional In secondary mode, node name or device ID of the root -# node who owns the replication node chain. Ignored in primary mode. +# node who owns the replication node chain. Must not be given in +# primary mode. # # Since: 2.8 ##Signature · 1 line
2.7.4
Signature · 1 line
/kashyap
Quoted 9 lines · Kashyap Chamarthy
Quoted 2 lines · Wang WeiWei
Kevin Wolf's advice:
http://lists.gnu.org/archive/html/qemu-devel/2016-09/msg02391.htmlIIUC, what Stefan meant is to write a simple descriptive commit message that explains why this change is necessary -- the above URL might have context, but having it spelled out in the Git commit message will be useful when someone is examining Git history offline.
Quoted 8 lines
I think Stefan was looking for something like (came up with this after reading the above thread):
QAPI: BlockdevOptionsReplication: Clarify 'top-id' parameter usage
In primary mode, the replication driver will ignore 'top-id' parameter, thus it must not be supplied. Explicitly spell that out in the QAPI schema for BlockdevOptionsReplication.
Yes. Posting just a URL as the commit description is not enough.
I tried to explain the purpose of commit messages/descriptions in my previous reply.
You can read a lot more about it elsewhere too:
http://chris.beams.io/posts/git-commit/
(The key points are the introduction and "7. Use the body to explain what and why vs. how")
Stefan
This is v2, should be included in the subject line.
Am 30.09.2016 um 10:53 hat Wang WeiWei geschrieben:
Quoted 17 lines
Kevin Wolf's advice:
http://lists.gnu.org/archive/html/qemu-devel/2016-09/msg02391.htmlSigned-off-by Wen Congyang <[email protected]>Signed-off-by Changlong Xie <[email protected]>Signed-off-by Wang WeiWei <[email protected]>Signed-off-by zhanghailiang <[email protected]>Signed-off-by Gonglei <[email protected]>--- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)qapi/block-core.json +0
-0
qapi/block-core.json line 2191
Quoted 9 lines
qapi/block-core.json +2
-1@@ -2184,7 +2184,8 @@ # @mode: the replication mode # # @top-id: #optional In secondary mode, node name or device ID of the root -# node who owns the replication node chain. Ignored in primary mode. +# node who owns the replication node chain. Must not be given in +# primary mode. # # Since: 2.8 ##
As I already wrote for v1:
The matching code in block/replication.c is missing to actually error out if the option is given in primary mode.
Kevin
Ok,thanks.
Quoted 40 lines · Kevin Wolf
This is v2, should be included in the subject line.
Am 30.09.2016 um 10:53 hat Wang WeiWei geschrieben:
Quoted 17 lines
Kevin Wolf's advice:
http://lists.gnu.org/archive/html/qemu-devel/2016-09/msg02391.htmlSigned-off-by Wen Congyang <[email protected]>Signed-off-by Changlong Xie <[email protected]>Signed-off-by Wang WeiWei <[email protected]>Signed-off-by zhanghailiang <[email protected]>Signed-off-by Gonglei <[email protected]>--- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)qapi/block-core.json +0
-0qapi/block-core.json line 2191
Quoted 9 lines
qapi/block-core.json +2
-1@@ -2184,7 +2184,8 @@ # @mode: the replication mode # # @top-id: #optional In secondary mode, node name or device ID of the root -# node who owns the replication node chain. Ignored in primary mode. +# node who owns the replication node chain. Must not be given in +# primary mode. # # Since: 2.8 ##As I already wrote for v1:
The matching code in
block/replication.cis missing to actually error out if the option is given in primary mode.Kevin
.