From: Stefan Reiter <s.reiter@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 2/4] file-restore: exit with code 1 in case streaming fails
Date: Mon, 26 Apr 2021 15:04:15 +0200 [thread overview]
Message-ID: <20210426130417.20979-2-s.reiter@proxmox.com> (raw)
In-Reply-To: <20210426130417.20979-1-s.reiter@proxmox.com>
This way the task gets marked as "failed" in PVE.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
---
src/bin/proxmox_file_restore/block_driver_qemu.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/bin/proxmox_file_restore/block_driver_qemu.rs b/src/bin/proxmox_file_restore/block_driver_qemu.rs
index c9142129..c95bf80b 100644
--- a/src/bin/proxmox_file_restore/block_driver_qemu.rs
+++ b/src/bin/proxmox_file_restore/block_driver_qemu.rs
@@ -228,6 +228,7 @@ impl BlockRestoreDriver for QemuBlockDriver {
.await
{
eprintln!("reading file extraction stream failed - {}", err);
+ std::process::exit(1);
}
});
--
2.20.1
next prev parent reply other threads:[~2021-04-26 13:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-26 13:04 [pbs-devel] [PATCH proxmox-backup 1/4] file-restore: add size to image files and components Stefan Reiter
2021-04-26 13:04 ` Stefan Reiter [this message]
2021-04-26 13:04 ` [pbs-devel] [PATCH proxmox-backup 3/4] file-restore: use less memory for VM and reboot on panic Stefan Reiter
2021-04-26 13:04 ` [pbs-devel] [PATCH proxmox-backup-restore-image 4/4] add workaround kernel patch for vsock panics Stefan Reiter
2021-04-27 6:35 ` [pbs-devel] applied-series: [PATCH proxmox-backup 1/4] file-restore: add size to image files and components Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210426130417.20979-2-s.reiter@proxmox.com \
--to=s.reiter@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox