提交 128b05f7 编写于 作者: K Kevin Wolf

block/null: Expose read-zeroes option in QAPI schema

Commit cd219eb1 added the read-zeroes option for the null-co and
null-aio block driver, but forgot to add them to the QAPI schema.
Therefore, this option wasn't available in -blockdev and blockdev-add
until now.

Add the missing option in the schema to make it available there, too.
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Reviewed-by: NMax Reitz <mreitz@redhat.com>
上级 dc68c9d3
...@@ -2890,11 +2890,13 @@ ...@@ -2890,11 +2890,13 @@
# @latency-ns: emulated latency (in nanoseconds) in processing # @latency-ns: emulated latency (in nanoseconds) in processing
# requests. Default to zero which completes requests immediately. # requests. Default to zero which completes requests immediately.
# (Since 2.4) # (Since 2.4)
# @read-zeroes: if true, reads from the device produce zeroes; if false, the
# buffer is left unchanged. (default: false; since: 4.1)
# #
# Since: 2.9 # Since: 2.9
## ##
{ 'struct': 'BlockdevOptionsNull', { 'struct': 'BlockdevOptionsNull',
'data': { '*size': 'int', '*latency-ns': 'uint64' } } 'data': { '*size': 'int', '*latency-ns': 'uint64', '*read-zeroes': 'bool' } }
## ##
# @BlockdevOptionsNVMe: # @BlockdevOptionsNVMe:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册