refactor: Use explicit interface instead of os.File for drive backend
This commit is contained in:
@@ -8,5 +8,5 @@ import (
|
||||
func Eject(
|
||||
state config.DriveConfig,
|
||||
) error {
|
||||
return mtio.EjectTape(state.Drive)
|
||||
return mtio.EjectTape(state.Drive.Fd())
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ import (
|
||||
func Tell(
|
||||
state config.DriveConfig,
|
||||
) (int64, error) {
|
||||
return mtio.GetCurrentRecordFromTape(state.Drive)
|
||||
return mtio.GetCurrentRecordFromTape(state.Drive.Fd())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user