summaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorBenoƮt Canet <benoit.canet@gmail.com>2012-08-02 10:22:48 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-08-03 10:10:51 -0300
commit2e3e331710faa8d0b7d70b73e87df1fb6d33d0d3 (patch)
tree006bd010517ea6ccb917e29b9ededb45dbd61664 /qapi-schema.json
parentf198fd1c9aedaae2fa78eb94e236e95ce4f2aedd (diff)
downloadqemu-2e3e331710faa8d0b7d70b73e87df1fb6d33d0d3.tar.gz
block: Use bdrv_get_backing_file_depth()
Use the dedicated counting function in qmp_query_block in order to propagate the backing file depth to HMP and add backing_file_depth to qmp-commands.hx Signed-off-by: Benoit Canet <benoit@irqsave.net> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json9
1 files changed, 6 insertions, 3 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index bc55ed2b6d..b58f5cded8 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -398,6 +398,8 @@
#
# @backing_file: #optional the name of the backing file (for copy-on-write)
#
+# @backing_file_depth: number of files in the backing file chain (since: 1.2)
+#
# @encrypted: true if the backing device is encrypted
#
# @bps: total throughput limit in bytes per second is specified
@@ -418,9 +420,10 @@
##
{ 'type': 'BlockDeviceInfo',
'data': { 'file': 'str', 'ro': 'bool', 'drv': 'str',
- '*backing_file': 'str', 'encrypted': 'bool',
- 'bps': 'int', 'bps_rd': 'int', 'bps_wr': 'int',
- 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int'} }
+ '*backing_file': 'str', 'backing_file_depth': 'int',
+ 'encrypted': 'bool', 'bps': 'int', 'bps_rd': 'int',
+ 'bps_wr': 'int', 'iops': 'int', 'iops_rd': 'int',
+ 'iops_wr': 'int'} }
##
# @BlockDeviceIoStatus: