refactor: Merge drive and reader config to enable implementations of tape management without synchronization

This commit is contained in:
Felicitas Pojtinger
2022-01-16 22:46:18 +01:00
parent 17e3c64f29
commit 5b84583403
28 changed files with 28 additions and 154 deletions

View File

@@ -128,15 +128,8 @@ func (o *Operations) Move(from string, to string) error {
}
defer o.backend.CloseReader()
drive, err := o.backend.GetDrive()
if err != nil {
return err
}
defer o.backend.CloseDrive()
return recovery.Index(
reader,
drive,
o.metadata,
o.pipes,
o.crypto,