tape: improve backup task abort behaviour

This commit is contained in:
Dietmar Maurer 2021-01-29 09:23:39 +01:00
parent a6c16894ff
commit 1f2c4713ef
1 changed files with 4 additions and 0 deletions

View File

@ -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 {