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>
11 [PVE: query-proxmox-support: include library version]
12 Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
14 pve-backup.c | 8 ++++++++
15 qapi/block-core.json | 25 +++++++++++++++++++++++++
16 2 files changed, 33 insertions(+)
18 diff --git a/pve-backup.c b/pve-backup.c
19 index bfb648d6b5..ba9d0d8a86 100644
22 @@ -1051,3 +1051,11 @@ BackupStatus *qmp_query_backup(Error **errp)
27 +ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp)
29 + ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret));
30 + ret->pbs_library_version = g_strdup(proxmox_backup_qemu_version());
31 + ret->pbs_dirty_bitmap = true;
34 diff --git a/qapi/block-core.json b/qapi/block-core.json
35 index 553112d998..e0a0a60354 100644
36 --- a/qapi/block-core.json
37 +++ b/qapi/block-core.json
40 { 'command': 'backup-cancel' }
43 +# @ProxmoxSupportStatus:
45 +# Contains info about supported features added by Proxmox.
47 +# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are
50 +# @pbs-library-version: Running version of libproxmox-backup-qemu0 library.
53 +{ 'struct': 'ProxmoxSupportStatus',
54 + 'data': { 'pbs-dirty-bitmap': 'bool',
55 + 'pbs-library-version': 'str' } }
58 +# @query-proxmox-support:
60 +# Returns information about supported features added by Proxmox.
62 +# Returns: @ProxmoxSupportStatus
65 +{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' }
68 # @BlockDeviceTimedStats: