]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0044-PVE-add-query_proxmox_support-QMP-command.patch
bump version to 5.2.0-2
[pve-qemu.git] / debian / patches / pve / 0044-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 [PVE: query-proxmox-support: include library version]
12 Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
13 ---
14 pve-backup.c | 8 ++++++++
15 qapi/block-core.json | 25 +++++++++++++++++++++++++
16 2 files changed, 33 insertions(+)
17
18 diff --git a/pve-backup.c b/pve-backup.c
19 index bfb648d6b5..ba9d0d8a86 100644
20 --- a/pve-backup.c
21 +++ b/pve-backup.c
22 @@ -1051,3 +1051,11 @@ BackupStatus *qmp_query_backup(Error **errp)
23
24 return info;
25 }
26 +
27 +ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp)
28 +{
29 + ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret));
30 + ret->pbs_library_version = g_strdup(proxmox_backup_qemu_version());
31 + ret->pbs_dirty_bitmap = true;
32 + return ret;
33 +}
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
38 @@ -868,6 +868,31 @@
39 ##
40 { 'command': 'backup-cancel' }
41
42 +##
43 +# @ProxmoxSupportStatus:
44 +#
45 +# Contains info about supported features added by Proxmox.
46 +#
47 +# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are
48 +# supported.
49 +#
50 +# @pbs-library-version: Running version of libproxmox-backup-qemu0 library.
51 +#
52 +##
53 +{ 'struct': 'ProxmoxSupportStatus',
54 + 'data': { 'pbs-dirty-bitmap': 'bool',
55 + 'pbs-library-version': 'str' } }
56 +
57 +##
58 +# @query-proxmox-support:
59 +#
60 +# Returns information about supported features added by Proxmox.
61 +#
62 +# Returns: @ProxmoxSupportStatus
63 +#
64 +##
65 +{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' }
66 +
67 ##
68 # @BlockDeviceTimedStats:
69 #