Revert "qapi: fix examples of blockdev-add with qcow2"
PATCH 1/1 Revert "qapi: fix examples of blockdev-add with qcow2"
This reverts commit b6522938327141235b97ab38e40c6c4512587373.
Kevin Wolf NAKed this patch, because:
'file' is a required member (defined in BlockdevOptionsGenericFormat), removing it makes the example invalid. 'data-file' is only an additional optional member to be used for external data files (i.e. when the guest data is kept separate from the metadata in the .qcow2 file).
However, it had already been merged then. Revert.
--- qapi/block-core.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
qapi/block-core.json +5 -5
@@ -1541,8 +1541,8 @@ # -> { "execute": "blockdev-add", # "arguments": { "driver": "qcow2", # "node-name": "node1534", -# "data-file": { "driver": "file", -# "filename": "hd1.qcow2" }, +# "file": { "driver": "file", +# "filename": "hd1.qcow2" }, # "backing": null } } # # <- { "return": {} }
@@ -4378,7 +4378,7 @@ # "arguments": { # "driver": "qcow2", # "node-name": "test1", -# "data-file": { +# "file": { # "driver": "file", # "filename": "test.qcow2" # }
@@ -4395,7 +4395,7 @@ # "cache": { # "direct": true # }, -# "data-file": { +# "file": { # "driver": "file", # "filename": "/tmp/test.qcow2" # },
@@ -4477,7 +4477,7 @@ # "arguments": { # "driver": "qcow2", # "node-name": "node0", -# "data-file": { +# "file": { # "driver": "file", # "filename": "test.qcow2" # }
Signature · 1 line
2.37.2
Hi,
Sorry taking some time to reply.
Quoted 1 line · Markus Armbruster
This reverts commit
b6522938327141235b97ab38e40c6c4512587373.
Which is:
``` qapi: fix examples of blockdev-add with qcow2 The examples use "qcow2" driver with the wrong member name for BlockdevRef alternate type. This patch changes all wrong member names from "file" to "data-file" which is the correct member name in BlockdevOptionsQcow2 for the BlockdevRef field. Problem was noticed when using the example as a test case for Go bindings. ```
Quoted 6 lines
Kevin Wolf NAKed this patch, because:
'file' is a required member (defined in BlockdevOptionsGenericFormat), removing it makes the example invalid. 'data-file' is only an additional optional member to be used for external data files (i.e. when the guest data is kept separate from the metadata in the .qcow2 file).
You are correct. I apologize for the mistake. I trusted a bit too much on the Go bindings and didn't realize that @file member was actually present:
@BlockdevOptionsQcow2 > @BlockdevOptionsGenericCOWFormat > @BlockdevOptionsGenericCOWFormat > @BlockdevOptionsGenericFormat
Quoted 3 lines
However, it had already been merged then. Revert.
Signed-off-by Markus Armbruster <[email protected]>
Quoted 49 lines
--- qapi/block-core.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)qapi/block-core.json +5
-5@@ -1541,8 +1541,8 @@ # -> { "execute": "blockdev-add", # "arguments": { "driver": "qcow2", # "node-name": "node1534", -# "data-file": { "driver": "file", -# "filename": "hd1.qcow2" }, +# "file": { "driver": "file", +# "filename": "hd1.qcow2" }, # "backing": null } } # # <- { "return": {} }@@ -4378,7 +4378,7 @@ # "arguments": { # "driver": "qcow2", # "node-name": "test1", -# "data-file": { +# "file": { # "driver": "file", # "filename": "test.qcow2" # }@@ -4395,7 +4395,7 @@ # "cache": { # "direct": true # }, -# "data-file": { +# "file": { # "driver": "file", # "filename": "/tmp/test.qcow2" # },@@ -4477,7 +4477,7 @@ # "arguments": { # "driver": "qcow2", # "node-name": "node0", -# "data-file": { +# "file": { # "driver": "file", # "filename": "test.qcow2" # }Signature · 1 line
2.37.2
Hi,
Quoted 35 lines · Victor Toso
Hi,
Sorry taking some time to reply.
Quoted 1 line · Markus Armbruster
This reverts commit
b6522938327141235b97ab38e40c6c4512587373.Which is:
``` qapi: fix examples of blockdev-add with qcow2 The examples use "qcow2" driver with the wrong member name for BlockdevRef alternate type. This patch changes all wrong member names from "file" to "data-file" which is the correct member name in BlockdevOptionsQcow2 for the BlockdevRef field. Problem was noticed when using the example as a test case for Go bindings. ```Quoted 6 lines
Kevin Wolf NAKed this patch, because:
'file' is a required member (defined in BlockdevOptionsGenericFormat), removing it makes the example invalid. 'data-file' is only an additional optional member to be used for external data files (i.e. when the guest data is kept separate from the metadata in the .qcow2 file).
You are correct. I apologize for the mistake. I trusted a bit too much on the Go bindings and didn't realize that @file member was actually present:
@BlockdevOptionsQcow2 > @BlockdevOptionsGenericCOWFormat > @BlockdevOptionsGenericCOWFormat > @BlockdevOptionsGenericFormat
Quoted 5 lines
Quoted 3 lines
However, it had already been merged then. Revert.
Signed-off-by Markus Armbruster <[email protected]>Acked-by Victor Toso <[email protected]>
Just realized, this should have been a reviewed-by ...
Quoted 49 lines
Quoted 49 lines
--- qapi/block-core.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)qapi/block-core.json +5
-5@@ -1541,8 +1541,8 @@ # -> { "execute": "blockdev-add", # "arguments": { "driver": "qcow2", # "node-name": "node1534", -# "data-file": { "driver": "file", -# "filename": "hd1.qcow2" }, +# "file": { "driver": "file", +# "filename": "hd1.qcow2" }, # "backing": null } } # # <- { "return": {} }@@ -4378,7 +4378,7 @@ # "arguments": { # "driver": "qcow2", # "node-name": "test1", -# "data-file": { +# "file": { # "driver": "file", # "filename": "test.qcow2" # }@@ -4395,7 +4395,7 @@ # "cache": { # "direct": true # }, -# "data-file": { +# "file": { # "driver": "file", # "filename": "/tmp/test.qcow2" # },@@ -4477,7 +4477,7 @@ # "arguments": { # "driver": "qcow2", # "node-name": "node0", -# "data-file": { +# "file": { # "driver": "file", # "filename": "test.qcow2" # }Signature · 1 line
2.37.2
Kevin Wolf
AppliedAm 30.09.2022 um 19:19 hat Markus Armbruster geschrieben:
Quoted 4 lines
This reverts commit
b6522938327141235b97ab38e40c6c4512587373.Kevin Wolf NAKed this patch, because:
Quoted 8 lines
'file' is a required member (defined in BlockdevOptionsGenericFormat), removing it makes the example invalid. 'data-file' is only an additional optional member to be used for external data files (i.e. when the guest data is kept separate from the metadata in the .qcow2 file).
However, it had already been merged then. Revert.
Signed-off-by Markus Armbruster <[email protected]>
Thanks, applied to the block branch.
Kevin