tape: pmt - re-implement lock/unlock command

This commit is contained in:
Dietmar Maurer
2021-04-07 12:12:26 +02:00
parent 7f7459677d
commit 566b946f9b
3 changed files with 33 additions and 4 deletions

View File

@ -577,8 +577,7 @@ fn lock(param: Value) -> Result<(), Error> {
let mut handle = get_tape_handle(&param)?;
unimplemented!();
// fixme: handle.mtop(MTCmd::MTLOCK, 1, "lock tape drive door")?;
handle.lock()?;
Ok(())
}
@ -715,8 +714,7 @@ fn unlock(param: Value) -> Result<(), Error> {
let mut handle = get_tape_handle(&param)?;
unimplemented!();
//handle.mtop(MTCmd::MTUNLOCK, 1, "unlock tape drive door")?;
handle.unlock()?;
Ok(())
}