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
6 Generic interface for future use, currently used for PBS dirty-bitmap
9 Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
10 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 pve-backup.c | 7 +++++++
13 qapi/block-core.json | 22 ++++++++++++++++++++++
14 2 files changed, 29 insertions(+)
16 diff --git a/pve-backup.c b/pve-backup.c
17 index 3323b195a4..5bdfd1fedd 100644
20 @@ -1055,3 +1055,10 @@ BackupStatus *qmp_query_backup(Error **errp)
25 +ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp)
27 + ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret));
28 + ret->pbs_dirty_bitmap = true;
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
37 { 'command': 'backup-cancel' }
40 +# @ProxmoxSupportStatus:
42 +# Contains info about supported features added by Proxmox.
44 +# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are
48 +{ 'struct': 'ProxmoxSupportStatus',
49 + 'data': { 'pbs-dirty-bitmap': 'bool' } }
52 +# @query-proxmox-support:
54 +# Returns information about supported features added by Proxmox.
56 +# Returns: @ProxmoxSupportStatus
59 +{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' }
62 # @BlockDeviceTimedStats: