]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0045-PVE-add-query_proxmox_support-QMP-command.patch
PBS patches: block driver, adapat encrypt/compress param, add query-proxmox-support...
[pve-qemu.git] / debian / patches / pve / 0045-PVE-add-query_proxmox_support-QMP-command.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Stefan Reiter <s.reiter@proxmox.com>
3 Date: Wed, 8 Jul 2020 11:57:53 +0200
4 Subject: [PATCH] PVE: add query_proxmox_support QMP command
5
6 Generic interface for future use, currently used for PBS dirty-bitmap
7 backup support.
8
9 Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
10 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 ---
12 pve-backup.c | 7 +++++++
13 qapi/block-core.json | 22 ++++++++++++++++++++++
14 2 files changed, 29 insertions(+)
15
16 diff --git a/pve-backup.c b/pve-backup.c
17 index 3323b195a4..5bdfd1fedd 100644
18 --- a/pve-backup.c
19 +++ b/pve-backup.c
20 @@ -1055,3 +1055,10 @@ BackupStatus *qmp_query_backup(Error **errp)
21
22 return info;
23 }
24 +
25 +ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp)
26 +{
27 + ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret));
28 + ret->pbs_dirty_bitmap = true;
29 + return ret;
30 +}
31 diff --git a/qapi/block-core.json b/qapi/block-core.json
32 index 13c63d8e6a..355a184ea8 100644
33 --- a/qapi/block-core.json
34 +++ b/qapi/block-core.json
35 @@ -867,6 +867,28 @@
36 ##
37 { 'command': 'backup-cancel' }
38
39 +##
40 +# @ProxmoxSupportStatus:
41 +#
42 +# Contains info about supported features added by Proxmox.
43 +#
44 +# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are
45 +# supported.
46 +#
47 +##
48 +{ 'struct': 'ProxmoxSupportStatus',
49 + 'data': { 'pbs-dirty-bitmap': 'bool' } }
50 +
51 +##
52 +# @query-proxmox-support:
53 +#
54 +# Returns information about supported features added by Proxmox.
55 +#
56 +# Returns: @ProxmoxSupportStatus
57 +#
58 +##
59 +{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' }
60 +
61 ##
62 # @BlockDeviceTimedStats:
63 #