]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: Add '@allow-write-only-overlay' feature for 'blockdev-snapshot'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 10 Mar 2020 11:38:31 +0000 (12:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Mar 2020 14:54:38 +0000 (15:54 +0100)
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 <pkrempa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200310113831.27293-8-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qapi/block-core.json

index 9758fc48d230049b4cfc8d94f2d5d718570a3c38..91586fb1fb896430795abfab5518b2ae6d97a678 100644 (file)
 #
 # 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:
 #
 ##
 { 'command': 'blockdev-snapshot',
-  'data': 'BlockdevSnapshot' }
+  'data': 'BlockdevSnapshot',
+  'features': [ 'allow-write-only-overlay' ] }
 
 ##
 # @change-backing-file: