From a5feeebc519cdbe7225652e1d2faefa90e39cca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 6 Aug 2020 13:13:49 +0200 Subject: [PATCH] allow backup of read-only block drives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is needed for template backups with PBS until we have the backup equivalent of 'pbs-restore'. Signed-off-by: Fabian Grünbichler --- .../0029-PVE-Backup-proxmox-backup-patches-for-qemu.patch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/debian/patches/pve/0029-PVE-Backup-proxmox-backup-patches-for-qemu.patch b/debian/patches/pve/0029-PVE-Backup-proxmox-backup-patches-for-qemu.patch index 405cd1c..46bede6 100644 --- a/debian/patches/pve/0029-PVE-Backup-proxmox-backup-patches-for-qemu.patch +++ b/debian/patches/pve/0029-PVE-Backup-proxmox-backup-patches-for-qemu.patch @@ -527,7 +527,7 @@ new file mode 100644 index 0000000000..9ae89fb679 --- /dev/null +++ b/pve-backup.c -@@ -0,0 +1,959 @@ +@@ -0,0 +1,955 @@ +#include "proxmox-backup-client.h" +#include "vma.h" + @@ -1050,10 +1050,6 @@ index 0000000000..9ae89fb679 + blk = blk_by_name(*d); + if (blk) { + bs = blk_bs(blk); -+ if (bdrv_is_read_only(bs)) { -+ error_setg(task->errp, "Node '%s' is read only", *d); -+ goto err; -+ } + if (!bdrv_is_inserted(bs)) { + error_setg(task->errp, QERR_DEVICE_HAS_NO_MEDIUM, *d); + goto err;