tape: fix catalog restore

We need to rewind the tape if fast_catalog_restore() fail ...
This commit is contained in:
Dietmar Maurer 2021-03-24 10:09:23 +01:00
parent c046739461
commit 870681013a
1 changed files with 3 additions and 0 deletions

View File

@ -1326,6 +1326,9 @@ pub fn catalog_media(
task_log!(worker, "no catalog found - scaning entire media now");
drive.rewind()?;
drive.read_label()?; // skip over labels - we already read them above
restore_media(&worker, &mut drive, &media_id, None, verbose)?;
Ok(())