[pbs-devel] [PATCH proxmox-backup 2/4] file-restore: exit with code 1 in case streaming fails

Stefan Reiter s.reiter at proxmox.com
Mon Apr 26 15:04:15 CEST 2021


This way the task gets marked as "failed" in PVE.

Signed-off-by: Stefan Reiter <s.reiter at 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






More information about the pbs-devel mailing list