[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 2/5] qcow2: add zone device metadata with zd_extension
From: |
Markus Armbruster |
Subject: |
Re: [RFC 2/5] qcow2: add zone device metadata with zd_extension |
Date: |
Mon, 21 Aug 2023 15:17:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Sam Li <faithilikerun@gmail.com> writes:
> Zone descriptor data is host definied data that is associated with
> each zone. Add zone descriptor extensions to zonedmeta and
> blk_get_zone_extension to access zd_extensions.
>
> Signed-off-by: Sam Li <faithilikerun@gmail.com>
[...]
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 0c97ae678b..f71dd18fc3 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -5024,6 +5024,8 @@
> # (default: off, since 8.0)
> # @zone-size: The size of a zone of the zoned device (since 8.0)
> # @zone-capacity: The capacity of a zone of the zoned device (since 8.0)
> +# @zd-extension-size: Zone descriptor extension size. Must be a multiple of
> +# 64 bytes (since 8.0)
> # @zone-nr-conv: The number of conventional zones of the zoned device
> # (since 8.0)
> # @max-open-zones: The maximal allowed open zones (since 8.0)
For better or worse, we tend to avoid abbreviations in QAPI schema
names. Would @zone-descriptor-extension-size be too unwieldy?
> @@ -5052,6 +5054,7 @@
> '*zoned-profile': 'str',
> '*zone-size': 'size',
> '*zone-capacity': 'size',
> + '*zd-extension-size': 'size',
> '*zone-nr-conv': 'uint32',
> '*max-open-zones': 'uint32',
> '*max-active-zones': 'uint32',