From: Markus Armbruster <armbru@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
"Hanna Reitz" <hreitz@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@mailo.com>,
"Ani Sinha" <anisinha@redhat.com>,
Qemu-block <qemu-block@nongnu.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
linux-cxl@vger.kernel.org, "Jonathan Cameron" <jic23@kernel.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Kevin Wolf" <kwolf@redhat.com>,
"Lukas Straub" <lukasstraub2@web.de>,
"Fabiano Rosas" <farosas@suse.de>,
"Eric Blake" <eblake@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Zhao Liu" <zhao1.liu@intel.com>, "Peter Xu" <peterx@redhat.com>
Subject: Re: [PATCH 12/12] qapi: convert simple command intros for block-core.json
Date: Mon, 07 Sep 2026 07:30:10 +0200 [thread overview]
Message-ID: <877bkx1vdp.fsf@pond.sub.org> (raw)
In-Reply-To: <CAFn=p-bd1EOw8aQQn+CUSEWLTNz98MP5z77rAn3jt02bbRNYbA@mail.gmail.com> (John Snow's message of "Fri, 4 Sep 2026 12:45:05 -0400")
John Snow <jsnow@redhat.com> writes:
> On Thu, Sep 3, 2026, 7:58 AM Markus Armbruster <armbru@redhat.com> wrote:
>
>> John Snow <jsnow@redhat.com> writes:
>>
>> > Signed-off-by: John Snow <jsnow@redhat.com>
>> > ---
>> > qapi/block-core.json | 96 +++++++++++++++++++++-----------------------
>> > 1 file changed, 46 insertions(+), 50 deletions(-)
>> >
>> > diff --git a/qapi/block-core.json b/qapi/block-core.json
>> > index 33e1147792b..29f011dc209 100644
>> > --- a/qapi/block-core.json
>> > +++ b/qapi/block-core.json
>> > @@ -1816,12 +1816,12 @@
>> >
>> > ##
>> > # @change-backing-file:
>> > -#
>> > -# Change the backing file in the image file metadata. This does not
>> > -# cause QEMU to reopen the image file to reparse the backing filename
>> > -# (it may, however, perform a reopen to change permissions from r/o ->
>> > -# r/w -> r/o, if needed). The new backing file string is written into
>> > -# the image file metadata, and the QEMU internal strings are updated.
>> > +# Change the backing file in the image file metadata. This does
>> > +# not cause QEMU to reopen the image file to reparse the backing
>> > +# filename (it may, however, perform a reopen to change
>> > +# permissions from r/o -> r/w -> r/o, if needed). The new backing
>> > +# file string is written into the image file metadata, and the
>> > +# QEMU internal strings are updated.
>> > #
>> > # @image-node-name: The name of the block driver state node of the
>> > # image to modify. The "device" argument is used to verify
>> > @@ -1957,12 +1957,12 @@
>> >
>> > ##
>> > # @drive-backup:
>> > -#
>> > -# Start a point-in-time copy of a block device to a new destination.
>> > -# The status of ongoing `drive-backup` operations can be checked with
>> > -# `query-block-jobs` where the `BlockJobInfo`.type field has the value
>> > -# 'backup'. The operation can be stopped before it has completed
>> > -# using the `job-cancel` or `block-job-cancel` command.
>> > +# Start a point-in-time copy of a block device to a new
>> > +# destination. The status of ongoing `drive-backup` operations
>> > +# can be checked with `query-block-jobs` where the
>> > +# `BlockJobInfo`.type field has the value 'backup'. The operation
>> > +# can be stopped before it has completed using the `job-cancel` or
>> > +# `block-job-cancel` command.
>> > #
>> > # Features:
>> > #
>> > @@ -1988,12 +1988,12 @@
>> >
>> > ##
>> > # @blockdev-backup:
>> > -#
>> > -# Start a point-in-time copy of a block device to a new destination.
>> > -# The status of ongoing `blockdev-backup` operations can be checked
>> > -# with `query-block-jobs` where the `BlockJobInfo`.type field has the
>> > -# value 'backup'. The operation can be stopped before it has
>> > -# completed using the `job-cancel` or `block-job-cancel` command.
>> > +# Start a point-in-time copy of a block device to a new
>> > +# destination. The status of ongoing `blockdev-backup` operations
>> > +# can be checked with `query-block-jobs` where the
>> > +# `BlockJobInfo`.type field has the value 'backup'. The operation
>> > +# can be stopped before it has completed using the `job-cancel` or
>> > +# `block-job-cancel` command.
>> > #
>> > # Errors:
>> > # - If @device is not a valid block device, DeviceNotFound
>> > @@ -2185,13 +2185,13 @@
>> >
>> > ##
>> > # @drive-mirror:
>> > -#
>> > -# Start mirroring a block device's writes to a new destination.
>> > -# target specifies the target of the new image. If the file exists,
>> > -# or if it is a device, it will be used as the new destination for
>> > -# writes. If it does not exist, a new file will be created. @format
>> > -# specifies the format of the mirror image, default is to probe if
>> > -# mode='existing', else the format of the source.
>> > +# Start mirroring a block device's writes to a new destination.
>> > +# target specifies the target of the new image. If the file
>>
>> @target, I think.
>>
>> > +# exists, or if it is a device, it will be used as the new
>> > +# destination for writes. If it does not exist, a new file will
>> > +# be created. @format specifies the format of the mirror image,
>> > +# default is to probe if mode='existing', else the format of the
>>
>> @mode
>>
>> Where there are two, there are almost certainly more.
>>
>
> You reviewed the series, does this mean changes for later?
No. My "leave that for another day" below applies.
>> > +# source.
>>
>> Text that refers to arguments should probably go below the argument
>> descriptions. I.e. this "intro" should probably be split.
>>
>> Let's leave that for another day, just take note of future work:
>>
>> 1. Add missing markup to argument / member / feature references.
>>
>> 2. Review and improve doc comments where the intro refers to arguments /
>> members / features.
>>
>> Not noting any of this again for this series.
>>
>
> OK.
>
>
>> > #
>> > # Errors:
>> > # - If @device is not a valid block device, GenericError
>> > @@ -2387,10 +2387,9 @@
>> >
>> > ##
>> > # @block-dirty-bitmap-remove:
>> > -#
>> > -# Stop write tracking and remove the dirty bitmap that was created
>> > -# with `block-dirty-bitmap-add`. If the bitmap is persistent, remove
>> > -# it from its storage too.
>> > +# Stop write tracking and remove the dirty bitmap that was created
>> > +# with `block-dirty-bitmap-add`. If the bitmap is persistent,
>> > +# remove it from its storage too.
>> > #
>> > # Errors:
>> > # - If @node is not a valid block device or node, DeviceNotFound
>> > @@ -4937,10 +4936,9 @@
>> >
>> > ##
>> > # @blockdev-del:
>> > -#
>> > -# Deletes a block device that has been added using `blockdev-add`.
>> > -# The command will fail if the node is attached to a device or is
>> > -# otherwise being used.
>> > +# Deletes a block device that has been added using `blockdev-add`.
>> > +# The command will fail if the node is attached to a device or is
>> > +# otherwise being used.
>>
>> Perhaps the "will fail" part should be in an Errors: section.
>>
>> The intros above use imperative mode, this one doesn't. Elsewhere in
>> this series, I even saw "Command to <do stuff>".
>>
>> More notes:
>>
>> 3. Review and improve doc comments where the intro talks about failure
>> modes.
>>
>> 4. Consistently use imperative mood for command intros.
>>
>> Not noting any of this again for this series.
>>
>
> Are you keeping a log of future changes, or should I write them down?
Both :)
My notes so far:
Noted in review of intro conversions:
1. Add missing markup to argument / member / feature references.
2. Review and improve doc comments where the intro refers to arguments /
members / features.
3. Review and improve doc comments where the intro talks about failure
modes.
4. Consistently use imperative mood for command intros.
5. Implement markup for non-local argument / member / feature
references, and put it to use.
>> > #
>> > # @node-name: Name of the graph node to delete.
>> > #
>>
>> [...]
>>
>>
next prev parent reply other threads:[~2026-09-07 5:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 19:43 [PATCH 00/12] qapi: convert simple command intro sections John Snow
2026-09-01 19:43 ` [PATCH 01/12] qapi: convert simple command intros for ebpf.json John Snow
2026-09-01 19:43 ` [PATCH 02/12] qapi: convert simple command intros for yank.json John Snow
2026-09-01 19:43 ` [PATCH 03/12] qapi: convert simple command intros for replay.json John Snow
2026-09-01 19:43 ` [PATCH 04/12] qapi: convert simple command intros for machine-s390x.json John Snow
2026-09-01 19:43 ` [PATCH 05/12] qapi: convert simple command intros for dump.json John Snow
2026-09-01 19:43 ` [PATCH 06/12] qapi: convert simple command intros for block-export.json John Snow
2026-09-01 19:43 ` [PATCH 07/12] qapi: convert simple command intros for block.json John Snow
2026-09-01 19:43 ` [PATCH 08/12] qapi: convert simple command intros for cxl.json John Snow
2026-09-01 19:43 ` [PATCH 09/12] qapi: convert simple command intros for ui.json John Snow
2026-09-01 19:43 ` [PATCH 10/12] qapi: convert simple command intros for migration.json John Snow
2026-09-01 19:43 ` [PATCH 11/12] qapi: convert simple command intros for machine.json John Snow
2026-09-01 19:43 ` [PATCH 12/12] qapi: convert simple command intros for block-core.json John Snow
2026-09-03 11:58 ` Markus Armbruster
[not found] ` <CAFn=p-bd1EOw8aQQn+CUSEWLTNz98MP5z77rAn3jt02bbRNYbA@mail.gmail.com>
2026-09-07 5:30 ` Markus Armbruster [this message]
2026-09-03 11:59 ` [PATCH 00/12] qapi: convert simple command intro sections Markus Armbruster
2026-09-03 14:44 ` John Snow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877bkx1vdp.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=anisinha@redhat.com \
--cc=eblake@redhat.com \
--cc=farosas@suse.de \
--cc=hreitz@redhat.com \
--cc=jic23@kernel.org \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=linux-cxl@vger.kernel.org \
--cc=lukasstraub2@web.de \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@mailo.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox