[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v12 05/14] qapi: create BlockdevOptionsCor structure for COR driv
From: |
Andrey Shinkevich |
Subject: |
[PATCH v12 05/14] qapi: create BlockdevOptionsCor structure for COR driver |
Date: |
Thu, 22 Oct 2020 21:13:34 +0300 |
Create the BlockdevOptionsCor structure for COR driver specific options
splitting it off form the BlockdevOptionsGenericFormat. The only option
'bottom' node in the structure denotes an image file that limits the
COR operations in the backing chain.
Suggested-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
---
qapi/block-core.json | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 0a64306..bf465f6 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -3938,6 +3938,25 @@
'data': { 'throttle-group': 'str',
'file' : 'BlockdevRef'
} }
+
+##
+# @BlockdevOptionsCor:
+#
+# Driver specific block device options for the copy-on-read driver.
+#
+# @bottom: the name of a non-filter node (allocation-bearing layer) that limits
+# the COR operations in the backing chain (inclusive).
+# For the block-stream job, it will be the first non-filter overlay of
+# the base node. We do not involve the base node into the COR
+# operations because the base may change due to a concurrent
+# block-commit job on the same backing chain.
+#
+# Since: 5.2
+##
+{ 'struct': 'BlockdevOptionsCor',
+ 'base': 'BlockdevOptionsGenericFormat',
+ 'data': { '*bottom': 'str' } }
+
##
# @BlockdevOptions:
#
@@ -3990,7 +4009,7 @@
'bochs': 'BlockdevOptionsGenericFormat',
'cloop': 'BlockdevOptionsGenericFormat',
'compress': 'BlockdevOptionsGenericFormat',
- 'copy-on-read':'BlockdevOptionsGenericFormat',
+ 'copy-on-read':'BlockdevOptionsCor',
'dmg': 'BlockdevOptionsGenericFormat',
'file': 'BlockdevOptionsFile',
'ftp': 'BlockdevOptionsCurlFtp',
--
1.8.3.1
- [PATCH v12 01/14] copy-on-read: support preadv/pwritev_part functions, (continued)
- [PATCH v12 01/14] copy-on-read: support preadv/pwritev_part functions, Andrey Shinkevich, 2020/10/22
- [PATCH v12 02/14] block: add insert/remove node functions, Andrey Shinkevich, 2020/10/22
- [PATCH v12 10/14] block: include supported_read_flags into BDS structure, Andrey Shinkevich, 2020/10/22
- [PATCH v12 09/14] block: modify the comment for BDRV_REQ_PREFETCH flag, Andrey Shinkevich, 2020/10/22
- [PATCH v12 13/14] stream: skip filters when writing backing file name to QCOW2 header, Andrey Shinkevich, 2020/10/22
- [PATCH v12 12/14] copy-on-read: skip non-guest reads if no copy needed, Andrey Shinkevich, 2020/10/22
- [PATCH v12 08/14] iotests: add #310 to test bottom node in COR driver, Andrey Shinkevich, 2020/10/22
- [PATCH v12 05/14] qapi: create BlockdevOptionsCor structure for COR driver,
Andrey Shinkevich <=