tape: fix catalog restore
We need to rewind the tape if fast_catalog_restore() fail ...
This commit is contained in:
parent
c046739461
commit
870681013a
|
@ -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(())
|
||||
|
|
Loading…
Reference in New Issue