tape: improve inline docs for READ POSITION LONG

This commit is contained in:
Dietmar Maurer 2021-05-06 11:45:40 +02:00
parent bbbf662d20
commit 3e234af16e

View File

@ -328,6 +328,9 @@ impl SgTape {
let mut sg_raw = SgRaw::new(&mut self.file, 32)?; let mut sg_raw = SgRaw::new(&mut self.file, 32)?;
sg_raw.set_timeout(30); // use short timeout sg_raw.set_timeout(30); // use short timeout
let mut cmd = Vec::new(); let mut cmd = Vec::new();
// READ POSITION LONG FORM works on LTO4 or newer (with recent
// firmware), although it is missing in the IBM LTO4 SSCI
// reference manual.
cmd.extend(&[0x34, 0x06, 0, 0, 0, 0, 0, 0, 0, 0]); // READ POSITION LONG FORM cmd.extend(&[0x34, 0x06, 0, 0, 0, 0, 0, 0, 0, 0]); // READ POSITION LONG FORM
let data = sg_raw.do_command(&cmd) let data = sg_raw.do_command(&cmd)