[PATCH v2] qapi/block-core.json: Remove stale description of 'blockdev-add'

Kashyap Chamarthy posted 1 patch 3 years, 8 months ago
Test docker-quick@centos7 failed
Test docker-mingw@fedora failed
Test checkpatch failed
Test FreeBSD failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200805100158.1239390-1-kchamart@redhat.com
Maintainers: Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>
qapi/block-core.json | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
[PATCH v2] qapi/block-core.json: Remove stale description of 'blockdev-add'
Posted by Kashyap Chamarthy 3 years, 8 months ago
On a 'qemu-discuss' thread[1], Kevin identifies that the current doc
blurb for @blockdev-add is stale:

    This is actually a documentation bug. @id doesn't exist,
    blockdev-add never creates a BlockBackend. This was different in the
    very first versions of the patches to add blockdev-add and we
    probably just forgot to update the documentation after removing it.

So remove the stale bits.

And the requirement for 'node-name' is already mentioned in the
documentation of @BlockdevOptions:

    [...]
    # @node-name: the node name of the new node (Since 2.0).
    #             This option is required on the top level of blockdev-add.
    #             Valid node names start with an alphabetic character and may
    #             contain only alphanumeric characters, '-', '.' and '_'. Their
    #             maximum length is 31 characters.
    [...]

[1] https://lists.nongnu.org/archive/html/qemu-discuss/2020-07/msg00071.html
    -- equivalent to "-drive if=ide,id=disk0....."

Fixes: be4b67bc7d ("blockdev: Allow creation of BDS trees without BB")

Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
Suggested-by: Kevin Wolf <kwolf@redhat.com>
---
v2: Address Eric Blake's feedback --
    https://lists.nongnu.org/archive/html/qemu-devel/2020-07/msg08081.html
---
 qapi/block-core.json | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/qapi/block-core.json b/qapi/block-core.json
index 463ffd83da..3575d73ebf 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -4049,9 +4049,7 @@
 ##
 # @blockdev-add:
 #
-# Creates a new block device. If the @id option is given at the top level, a
-# BlockBackend will be created; otherwise, @node-name is mandatory at the top
-# level and no BlockBackend will be created.
+# Creates a new block device.
 #
 # Since: 2.9
 #
-- 
2.26.2


Re: [PATCH v2] qapi/block-core.json: Remove stale description of 'blockdev-add'
Posted by Eric Blake 3 years, 8 months ago
On 8/5/20 5:01 AM, Kashyap Chamarthy wrote:
> On a 'qemu-discuss' thread[1], Kevin identifies that the current doc
> blurb for @blockdev-add is stale:
> 
>      This is actually a documentation bug. @id doesn't exist,
>      blockdev-add never creates a BlockBackend. This was different in the
>      very first versions of the patches to add blockdev-add and we
>      probably just forgot to update the documentation after removing it.
> 
> So remove the stale bits.
> 
> And the requirement for 'node-name' is already mentioned in the
> documentation of @BlockdevOptions:
> 
>      [...]
>      # @node-name: the node name of the new node (Since 2.0).
>      #             This option is required on the top level of blockdev-add.
>      #             Valid node names start with an alphabetic character and may
>      #             contain only alphanumeric characters, '-', '.' and '_'. Their
>      #             maximum length is 31 characters.
>      [...]
> 
> [1] https://lists.nongnu.org/archive/html/qemu-discuss/2020-07/msg00071.html
>      -- equivalent to "-drive if=ide,id=disk0....."
> 
> Fixes: be4b67bc7d ("blockdev: Allow creation of BDS trees without BB")
> 
> Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
> Suggested-by: Kevin Wolf <kwolf@redhat.com>
> ---

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Re: [PATCH v2] qapi/block-core.json: Remove stale description of 'blockdev-add'
Posted by Markus Armbruster 3 years, 7 months ago
Kashyap Chamarthy <kchamart@redhat.com> writes:

> On a 'qemu-discuss' thread[1], Kevin identifies that the current doc
> blurb for @blockdev-add is stale:
>
>     This is actually a documentation bug. @id doesn't exist,
>     blockdev-add never creates a BlockBackend. This was different in the
>     very first versions of the patches to add blockdev-add and we
>     probably just forgot to update the documentation after removing it.
>
> So remove the stale bits.
>
> And the requirement for 'node-name' is already mentioned in the
> documentation of @BlockdevOptions:
>
>     [...]
>     # @node-name: the node name of the new node (Since 2.0).
>     #             This option is required on the top level of blockdev-add.
>     #             Valid node names start with an alphabetic character and may
>     #             contain only alphanumeric characters, '-', '.' and '_'. Their
>     #             maximum length is 31 characters.
>     [...]
>
> [1] https://lists.nongnu.org/archive/html/qemu-discuss/2020-07/msg00071.html
>     -- equivalent to "-drive if=ide,id=disk0....."
>
> Fixes: be4b67bc7d ("blockdev: Allow creation of BDS trees without BB")
>
> Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
> Suggested-by: Kevin Wolf <kwolf@redhat.com>
> ---
> v2: Address Eric Blake's feedback --
>     https://lists.nongnu.org/archive/html/qemu-devel/2020-07/msg08081.html
> ---
>  qapi/block-core.json | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 463ffd83da..3575d73ebf 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -4049,9 +4049,7 @@
>  ##
>  # @blockdev-add:
>  #
> -# Creates a new block device. If the @id option is given at the top level, a
> -# BlockBackend will be created; otherwise, @node-name is mandatory at the top
> -# level and no BlockBackend will be created.
> +# Creates a new block device.
>  #
>  # Since: 2.9
>  #

Queued, thanks!