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

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