tape: pmt - re-implement fsr/bsr

This commit is contained in:
Dietmar Maurer
2021-04-07 11:50:09 +02:00
parent 0892a512bc
commit 7f7459677d
2 changed files with 12 additions and 7 deletions

View File

@ -195,6 +195,14 @@ impl LtoTapeHandle {
self.sg_tape.space_filemarks(-isize::try_from(count)?)
}
pub fn forward_space_count_records(&mut self, count: usize) -> Result<(), Error> {
self.sg_tape.space_blocks(isize::try_from(count)?)
}
pub fn backward_space_count_records(&mut self, count: usize) -> Result<(), Error> {
self.sg_tape.space_blocks(-isize::try_from(count)?)
}
pub fn erase_media(&mut self, fast: bool) -> Result<(), Error> {
self.sg_tape.erase_media(fast)
}