[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/15] qga/qapi-schema: Plug trivial documentation holes
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 09/15] qga/qapi-schema: Plug trivial documentation holes |
Date: |
Thu, 08 Feb 2024 07:49:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Daniel P. Berrangé <berrange@redhat.com> writes:
> On Mon, Feb 05, 2024 at 08:47:03AM +0100, Markus Armbruster wrote:
>> Add missing return member documentation of guest-get-disks,
>> guest-get-devices, guest-get-diskstats, and guest-get-cpustats.
>>
>> The NVMe SMART information returned by guest-getdisks remains
>> undocumented. Add a TODO there.
>>
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>> qga/qapi-schema.json | 24 ++++++++++++++----------
>> 1 file changed, 14 insertions(+), 10 deletions(-)
>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
>
>> @@ -978,7 +974,7 @@
>> #
>> # Disk type related smart information.
>> #
>> -# - @nvme: NVMe disk smart
>> +# @type: disk bus type
>> #
>> # Since: 7.1
>> ##
>
> Fun, so not only were the fields that exist not documented,
> but we've documented fields which don't exist.
I think the @nvme line tried to document the branch. Not useful; the
doc generator takes care of that:
GuestDiskSmart (Object)
-----------------------
Disk type related smart information.
* nvme: NVMe disk smart
Members
~~~~~~~
"type": "GuestDiskBusType"
Not documented
--> The members of "GuestNVMeSmart" when "type" is "nvme"
>> @@ -1780,7 +1784,7 @@
>> #
>> # Get statistics of each CPU in millisecond.
>> #
>> -# - @linux: Linux style CPU statistics
>> +# @type: guest operating system
>> #
>> # Since: 7.1
>> ##
>
> And more things which don't exist !
Likewise.
- [PATCH 00/15] qapi: Require member documentation (with loophole), Markus Armbruster, 2024/02/05
- [PATCH 06/15] qapi: Require member documentation (with loophole), Markus Armbruster, 2024/02/05
- [PATCH 09/15] qga/qapi-schema: Plug trivial documentation holes, Markus Armbruster, 2024/02/05
- [PATCH 05/15] sphinx/qapidoc: Drop code to generate doc for simple union tag, Markus Armbruster, 2024/02/05
- [PATCH 12/15] qapi: Plug trivial documentation holes around former simple unions, Markus Armbruster, 2024/02/05
- [PATCH 14/15] qapi: Move @String out of common.json to discourage reuse, Markus Armbruster, 2024/02/05
- [PATCH 13/15] qapi: Improve documentation of file descriptor socket addresses, Markus Armbruster, 2024/02/05
- [PATCH 02/15] docs/devel/qapi-code-gen: Tweak doc comment whitespace, Markus Armbruster, 2024/02/05