From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 699225BD82 for ; Wed, 8 Jul 2020 11:36:37 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 5F1172F537 for ; Wed, 8 Jul 2020 11:36:07 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id D5D8F2F52F for ; Wed, 8 Jul 2020 11:36:06 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id A59874307D for ; Wed, 8 Jul 2020 11:36:06 +0200 (CEST) From: Stefan Reiter To: pve-devel@lists.proxmox.com Date: Wed, 8 Jul 2020 11:35:56 +0200 Message-Id: <20200708093557.12734-1-s.reiter@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH v2 qemu 1/2] PVE: add query_proxmox_support QMP command X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2020 09:36:37 -0000 Generic interface for future use, currently used for PBS and dirty-bitmap backup support. Signed-off-by: Stefan Reiter --- 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