From: Markus Armbruster Date: Thu, 18 Jul 2024 12:36:09 +0000 (+0200) Subject: qapi-block-core: Clean up blockdev-snapshot-internal-sync doc X-Git-Tag: qemu-xen-4.20.0~29^2~12 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f0e0c46309dac41a8420bcb379b1cffa7da0f62c;p=qemu-xen.git qapi-block-core: Clean up blockdev-snapshot-internal-sync doc BlockdevSnapshotInternal is the arguments type of command blockdev-snapshot-internal-sync. Its doc comment contains this note: # .. note:: In a transaction, if @name is empty or any snapshot matching # @name exists, the operation will fail. Only some image formats # support it; for example, qcow2, and rbd. "In a transaction" is misleading, and "if @name is empty or any snapshot matching @name exists, the operation will fail" is redundant with the command's Errors documentation. Drop. The remainder is fine. Move it to the command's doc comment, where it is more prominently visible, with a slight rephrasing for clarity. Signed-off-by: Markus Armbruster Message-ID: <20240718123609.3063055-1-armbru@redhat.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/qapi/block-core.json b/qapi/block-core.json index a1b7cdc58e..aa40d44f1d 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -6047,10 +6047,6 @@ # # @name: the name of the internal snapshot to be created # -# .. note:: In a transaction, if @name is empty or any snapshot -# matching @name exists, the operation will fail. Only some image -# formats support it; for example, qcow2, and rbd. -# # Since: 1.7 ## { 'struct': 'BlockdevSnapshotInternal', @@ -6071,6 +6067,9 @@ # - If the format of the image used does not support it, # GenericError # +# .. note:: Only some image formats such as qcow2 and rbd support +# internal snapshots. +# # Since: 1.7 # # .. qmp-example::