Hanna Czenczek <[email protected]> writes:

> This enum gives more information than IoOperationType (which is used for
> the rerror/werror distinction) to identify operation types for block
> accounting.
>
> Signed-off-by: Hanna Czenczek <[email protected]>
> ---
>  qapi/block.json | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/qapi/block.json b/qapi/block.json
> index 0a88d405a26..8f4a71733c1 100644
> --- a/qapi/block.json
> +++ b/qapi/block.json
> @@ -629,3 +629,23 @@
>              'command': 'str' },
>    'features': [ 'unstable' ],
>    'allow-preconfig': true }
> +
> +##
> +# @IoAccountingOperation:
> +#
> +# I/O operation types as they are tracked by block accounting.

Can we have a link to suitable docs on block accounting?

> +#
> +# @read: Reading data
> +#
> +# @write: Writing data
> +#
> +# @flush: Flushing data to disk
> +#
> +# @zone-append: Appending data to a zone of a zoned block device
> +#
> +# @unmap: Discarding a block of data
> +#
> +# Since: 11.2
> +##
> +{ 'enum': 'IoAccountingOperation',
> +  'data': [ 'read', 'write', 'flush', 'zone-append', 'unmap' ] }


Reply via email to