Blame SOURCES/kvm-qapi-Add-allow-write-only-overlay-feature-for-blockd.patch

22c213
From 428eb7260718b69b1f3f421d03bce10b8785fc49 Mon Sep 17 00:00:00 2001
22c213
From: Kevin Wolf <kwolf@redhat.com>
22c213
Date: Fri, 13 Mar 2020 12:34:39 +0000
22c213
Subject: [PATCH 19/20] qapi: Add '@allow-write-only-overlay' feature for
22c213
 'blockdev-snapshot'
22c213
22c213
RH-Author: Kevin Wolf <kwolf@redhat.com>
22c213
Message-id: <20200313123439.10548-14-kwolf@redhat.com>
22c213
Patchwork-id: 94290
22c213
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH v2 13/13] qapi: Add '@allow-write-only-overlay' feature for 'blockdev-snapshot'
22c213
Bugzilla: 1790482 1805143
22c213
RH-Acked-by: John Snow <jsnow@redhat.com>
22c213
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
22c213
RH-Acked-by: Peter Krempa <pkrempa@redhat.com>
22c213
22c213
From: Peter Krempa <pkrempa@redhat.com>
22c213
22c213
Anounce that 'blockdev-snapshot' command's permissions allow changing
22c213
of the backing file if the 'consistent_read' permission is not required.
22c213
22c213
This is useful for libvirt to allow late opening of the backing chain
22c213
during a blockdev-mirror.
22c213
22c213
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
22c213
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
22c213
Message-Id: <20200310113831.27293-8-kwolf@redhat.com>
22c213
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
22c213
(cherry picked from commit c6bdc312f30d5c7326aa2fdca3e0f98c15eb541a)
22c213
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
22c213
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
22c213
---
22c213
 qapi/block-core.json | 9 ++++++++-
22c213
 1 file changed, 8 insertions(+), 1 deletion(-)
22c213
22c213
diff --git a/qapi/block-core.json b/qapi/block-core.json
22c213
index a1e85b0..a64ad81 100644
22c213
--- a/qapi/block-core.json
22c213
+++ b/qapi/block-core.json
22c213
@@ -1541,6 +1541,12 @@
22c213
 #
22c213
 # For the arguments, see the documentation of BlockdevSnapshot.
22c213
 #
22c213
+# Features:
22c213
+# @allow-write-only-overlay: If present, the check whether this operation is safe
22c213
+#                            was relaxed so that it can be used to change
22c213
+#                            backing file of a destination of a blockdev-mirror.
22c213
+#                            (since 5.0)
22c213
+#
22c213
 # Since: 2.5
22c213
 #
22c213
 # Example:
22c213
@@ -1561,7 +1567,8 @@
22c213
 #
22c213
 ##
22c213
 { 'command': 'blockdev-snapshot',
22c213
-  'data': 'BlockdevSnapshot' }
22c213
+  'data': 'BlockdevSnapshot',
22c213
+  'features': [ 'allow-write-only-overlay' ] }
22c213
 
22c213
 ##
22c213
 # @change-backing-file:
22c213
-- 
22c213
1.8.3.1
22c213