2020-07-09 14:15:49 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Stefan Reiter <s.reiter@proxmox.com>
|
|
|
|
Date: Wed, 8 Jul 2020 11:57:53 +0200
|
|
|
|
Subject: [PATCH] PVE: add query_proxmox_support QMP command
|
|
|
|
|
|
|
|
Generic interface for future use, currently used for PBS dirty-bitmap
|
|
|
|
backup support.
|
|
|
|
|
|
|
|
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
|
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
|
|
---
|
|
|
|
pve-backup.c | 7 +++++++
|
|
|
|
qapi/block-core.json | 22 ++++++++++++++++++++++
|
|
|
|
2 files changed, 29 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/pve-backup.c b/pve-backup.c
|
2020-08-20 11:42:45 +03:00
|
|
|
index 343035b5c9..b0e7b51eef 100644
|
2020-07-09 14:15:49 +03:00
|
|
|
--- a/pve-backup.c
|
|
|
|
+++ b/pve-backup.c
|
|
|
|
@@ -1055,3 +1055,10 @@ BackupStatus *qmp_query_backup(Error **errp)
|
|
|
|
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp)
|
|
|
|
+{
|
|
|
|
+ ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret));
|
|
|
|
+ ret->pbs_dirty_bitmap = true;
|
|
|
|
+ return ret;
|
|
|
|
+}
|
|
|
|
diff --git a/qapi/block-core.json b/qapi/block-core.json
|
2020-08-20 11:42:45 +03:00
|
|
|
index f782c2cf96..6dd5e35473 100644
|
2020-07-09 14:15:49 +03:00
|
|
|
--- a/qapi/block-core.json
|
|
|
|
+++ b/qapi/block-core.json
|
2020-08-20 11:42:45 +03:00
|
|
|
@@ -877,6 +877,28 @@
|
2020-07-09 14:15:49 +03:00
|
|
|
##
|
|
|
|
{ 'command': 'backup-cancel' }
|
|
|
|
|
|
|
|
+##
|
|
|
|
+# @ProxmoxSupportStatus:
|
|
|
|
+#
|
|
|
|
+# Contains info about supported features added by Proxmox.
|
|
|
|
+#
|
|
|
|
+# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are
|
|
|
|
+# supported.
|
|
|
|
+#
|
|
|
|
+##
|
|
|
|
+{ 'struct': 'ProxmoxSupportStatus',
|
|
|
|
+ 'data': { 'pbs-dirty-bitmap': 'bool' } }
|
|
|
|
+
|
|
|
|
+##
|
|
|
|
+# @query-proxmox-support:
|
|
|
|
+#
|
|
|
|
+# Returns information about supported features added by Proxmox.
|
|
|
|
+#
|
|
|
|
+# Returns: @ProxmoxSupportStatus
|
|
|
|
+#
|
|
|
|
+##
|
|
|
|
+{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' }
|
|
|
|
+
|
|
|
|
##
|
|
|
|
# @BlockDeviceTimedStats:
|
|
|
|
#
|