From 1f2c4713ef07fdebc94f23dde5346203525ef125 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 29 Jan 2021 09:23:39 +0100 Subject: [PATCH] tape: improve backup task abort behaviour --- src/api2/tape/backup.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api2/tape/backup.rs b/src/api2/tape/backup.rs index 84d3851c..91f5983e 100644 --- a/src/api2/tape/backup.rs +++ b/src/api2/tape/backup.rs @@ -211,6 +211,8 @@ pub fn backup_snapshot( let uuid = pool_writer.load_writable_media(worker)?; + worker.check_abort()?; + let (leom, _bytes) = pool_writer.append_chunk_archive(worker, &datastore, &mut chunk_iter)?; if leom { @@ -222,6 +224,8 @@ pub fn backup_snapshot( let uuid = pool_writer.load_writable_media(worker)?; + worker.check_abort()?; + let (done, _bytes) = pool_writer.append_snapshot_archive(worker, &snapshot_reader)?; if !done {