[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 7/7] qapi: Add '@allow-write-only-overlay' feature for 'blockd
From: |
Kevin Wolf |
Subject: |
[PATCH v2 7/7] qapi: Add '@allow-write-only-overlay' feature for 'blockdev-snapshot' |
Date: |
Tue, 10 Mar 2020 12:38:31 +0100 |
From: Peter Krempa <address@hidden>
Anounce that 'blockdev-snapshot' command's permissions allow changing
of the backing file if the 'consistent_read' permission is not required.
This is useful for libvirt to allow late opening of the backing chain
during a blockdev-mirror.
Signed-off-by: Peter Krempa <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
qapi/block-core.json | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 9758fc48d2..91586fb1fb 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1472,6 +1472,12 @@
#
# For the arguments, see the documentation of BlockdevSnapshot.
#
+# Features:
+# @allow-write-only-overlay: If present, the check whether this operation is
safe
+# was relaxed so that it can be used to change
+# backing file of a destination of a
blockdev-mirror.
+# (since 5.0)
+#
# Since: 2.5
#
# Example:
@@ -1492,7 +1498,8 @@
#
##
{ 'command': 'blockdev-snapshot',
- 'data': 'BlockdevSnapshot' }
+ 'data': 'BlockdevSnapshot',
+ 'features': [ 'allow-write-only-overlay' ] }
##
# @change-backing-file:
--
2.20.1
- Re: [PATCH v2 2/7] block: Relax restrictions for blockdev-snapshot, (continued)
- [PATCH v2 3/7] iotests: Fix run_job() with use_log=False, Kevin Wolf, 2020/03/10
- [PATCH v2 5/7] block: Fix cross-AioContext blockdev-snapshot, Kevin Wolf, 2020/03/10
- [PATCH v2 4/7] iotests: Test mirror with temporarily disabled target backing file, Kevin Wolf, 2020/03/10
- [PATCH v2 6/7] iotests: Add iothread cases to 155, Kevin Wolf, 2020/03/10
- [PATCH v2 7/7] qapi: Add '@allow-write-only-overlay' feature for 'blockdev-snapshot',
Kevin Wolf <=
- Re: [PATCH v2 0/7] block: Relax restrictions for blockdev-snapshot, Kevin Wolf, 2020/03/10