diff mbox series

qapi: birtmap-merge: document name change

Message ID 20180919190934.16284-1-jsnow@redhat.com
State New
Headers show
Series qapi: birtmap-merge: document name change | expand

Commit Message

John Snow Sept. 19, 2018, 7:09 p.m. UTC
We named these using underscores instead of the preferred dash,
document this nearby so we cannot possibly forget to rectify this
when we remove the 'x-' prefixes when the feature becomes stable.

We do not implement the change ahead of time to avoid more work
for libvirt to do in order to figure out how to use the beta version
of the API needlessly.

Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
---
 qapi/block-core.json | 2 ++
 1 file changed, 2 insertions(+)

Comments

Eric Blake Sept. 19, 2018, 7:19 p.m. UTC | #1
On 9/19/18 2:09 PM, John Snow wrote:
> We named these using underscores instead of the preferred dash,
> document this nearby so we cannot possibly forget to rectify this
> when we remove the 'x-' prefixes when the feature becomes stable.
> 
> We do not implement the change ahead of time to avoid more work
> for libvirt to do in order to figure out how to use the beta version
> of the API needlessly.

Indeed, deferring the spelling change until the name switch from 'x-' to 
stable is an easily visible witness (via 'query-commands'), but 
prematurely changing the name of the parameters for two different 
versions of qemu while keeping the command named 'x-' (if we don't think 
the feature is ready to promote to stable in for 3.1) would mean 
resorting to the more computationally-expensive 'query-qmp-schema'.

> 
> Reported-by: Eric Blake <eblake@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>   qapi/block-core.json | 2 ++
>   1 file changed, 2 insertions(+)

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

> 
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 4c7a37afdc..3611063073 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -1894,6 +1894,8 @@
>   ##
>   # @x-block-dirty-bitmap-merge:
>   #
> +# FIXME: Rename @src_name and @dst_name to src-name and dst-name.
> +#
>   # Merge @src_name dirty bitmap to @dst_name dirty bitmap. @src_name dirty
>   # bitmap is unchanged. On error, @dst_name is unchanged.
>   #
>
Eric Blake Sept. 19, 2018, 9:07 p.m. UTC | #2
On 9/19/18 2:09 PM, John Snow wrote:

In the subject-line: s/birtmap/bitmap/

> We named these using underscores instead of the preferred dash,
> document this nearby so we cannot possibly forget to rectify this
> when we remove the 'x-' prefixes when the feature becomes stable.
> 
> We do not implement the change ahead of time to avoid more work
> for libvirt to do in order to figure out how to use the beta version
> of the API needlessly.
> 
> Reported-by: Eric Blake <eblake@redhat.com>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>   qapi/block-core.json | 2 ++
>   1 file changed, 2 insertions(+)

I can add this to my NBD queue, if desired.
Markus Armbruster Sept. 21, 2018, 8:10 a.m. UTC | #3
Eric Blake <eblake@redhat.com> writes:

> On 9/19/18 2:09 PM, John Snow wrote:
>
> In the subject-line: s/birtmap/bitmap/
>
>> We named these using underscores instead of the preferred dash,
>> document this nearby so we cannot possibly forget to rectify this
>> when we remove the 'x-' prefixes when the feature becomes stable.
>>
>> We do not implement the change ahead of time to avoid more work
>> for libvirt to do in order to figure out how to use the beta version
>> of the API needlessly.
>>
>> Reported-by: Eric Blake <eblake@redhat.com>
>> Signed-off-by: John Snow <jsnow@redhat.com>
>> ---
>>   qapi/block-core.json | 2 ++
>>   1 file changed, 2 insertions(+)
>
> I can add this to my NBD queue, if desired.

Please do.
diff mbox series

Patch

diff --git a/qapi/block-core.json b/qapi/block-core.json
index 4c7a37afdc..3611063073 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1894,6 +1894,8 @@ 
 ##
 # @x-block-dirty-bitmap-merge:
 #
+# FIXME: Rename @src_name and @dst_name to src-name and dst-name.
+#
 # Merge @src_name dirty bitmap to @dst_name dirty bitmap. @src_name dirty
 # bitmap is unchanged. On error, @dst_name is unchanged.
 #