tape/drive: add 'move_to_file' to TapeDriver trait
so that we can directly move to a specified file on the tape Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
e0ba5553be
commit
56d36ca439
@ -309,6 +309,10 @@ impl TapeDriver for LtoTapeHandle {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn move_to_file(&mut self, file: u64) -> Result<(), Error> {
|
||||
self.locate_file(file)
|
||||
}
|
||||
|
||||
fn rewind(&mut self) -> Result<(), Error> {
|
||||
self.sg_tape.rewind()
|
||||
}
|
||||
|
Reference in New Issue
Block a user