fix hmp info backup command
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
2b2949ca3a
commit
f47a9db42a
31
debian/patches/pve/0047-PVE-fix-hmp-info-backup-cmd-for-not-initialized-back.patch
vendored
Normal file
31
debian/patches/pve/0047-PVE-fix-hmp-info-backup-cmd-for-not-initialized-back.patch
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tim Marx <t.marx@proxmox.com>
|
||||||
|
Date: Wed, 22 Jan 2020 16:22:14 +0100
|
||||||
|
Subject: [PATCH] PVE: fix hmp info backup cmd for not initialized
|
||||||
|
backup_state.backup_mutex
|
||||||
|
|
||||||
|
Signed-off-by: Tim Marx <t.marx@proxmox.com>
|
||||||
|
---
|
||||||
|
monitor/hmp-cmds.c | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
|
||||||
|
index bc9ca346f7..fb820410de 100644
|
||||||
|
--- a/monitor/hmp-cmds.c
|
||||||
|
+++ b/monitor/hmp-cmds.c
|
||||||
|
@@ -201,6 +201,12 @@ void hmp_info_backup(Monitor *mon, const QDict *qdict)
|
||||||
|
BackupStatus *info;
|
||||||
|
|
||||||
|
info = qmp_query_backup(NULL);
|
||||||
|
+
|
||||||
|
+ if (!info) {
|
||||||
|
+ monitor_printf(mon, "Backup status: not initialized\n");
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (info->has_status) {
|
||||||
|
if (info->has_errmsg) {
|
||||||
|
monitor_printf(mon, "Backup status: %s - %s\n",
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -46,3 +46,4 @@ pve/0043-PVE-fixup-blockdev-pvebackup-integration-fix-blockjo.patch
|
|||||||
pve/0044-Acquire-aio_context-before-calling-block_job_add_bdr.patch
|
pve/0044-Acquire-aio_context-before-calling-block_job_add_bdr.patch
|
||||||
pve/0045-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch
|
pve/0045-PVE-Compat-4.0-used-balloon-qemu-4-0-config-size-fal.patch
|
||||||
pve/0046-PVE-Allow-version-code-in-machine-type.patch
|
pve/0046-PVE-Allow-version-code-in-machine-type.patch
|
||||||
|
pve/0047-PVE-fix-hmp-info-backup-cmd-for-not-initialized-back.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user