Generic interface for future use, currently used for PBS and dirty-bitmap backup support.
Signed-off-by: Stefan Reiter <[email protected]> --- v2: * include 'pbs' feature pve-backup.c | 8 ++++++++ qapi/block-core.json | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/pve-backup.c b/pve-backup.c index 46191bb328..d90010a4fe 100644 --- a/pve-backup.c +++ b/pve-backup.c @@ -1044,3 +1044,11 @@ BackupStatus *qmp_query_backup(Error **errp) return info; } + +ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp) +{ + ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret)); + ret->pbs = true; + ret->pbs_dirty_bitmap = true; + return ret; +} diff --git a/qapi/block-core.json b/qapi/block-core.json index 2c83734b04..d04d5e9f48 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -861,6 +861,30 @@ ## { 'command': 'backup-cancel' } +## +# @ProxmoxSupportStatus: +# +# Contains info about supported features added by Proxmox. +# +# @pbs: True if backing up to Proxmox Backup Server is supported. +# +# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are +# supported. +# +## +{ 'struct': 'ProxmoxSupportStatus', + 'data': { 'pbs': 'bool', 'pbs-dirty-bitmap': 'bool' } } + +## +# @query-proxmox-support: +# +# Returns information about supported features added by Proxmox. +# +# Returns: @ProxmoxSupportStatus +# +## +{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' } + ## # @BlockDeviceTimedStats: # -- 2.20.1 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
