C code
|
-
struct mtop op = { MTOFFL, 0 };
result = ioctl(tapefd, MTIOCTOP, &op);
|
Description
|
Rewind the tape cartridge and put the drive off-line. This should result
in ejecting the tape cartridge.
|
Notes
|
MTOFFL always results in updating of the header segments
if necessary.
|
Limitations
|
The Iomega Ditto Max tape drive is the only floppy tape drive I
know of that supports ejecting the cartridge. All others don't.
Therefore ftape-3.04d (and later versions) (as did ftape-2.x and sftape) implement
this command as a `soft eject ' in the sense that the driver rejects
any further operation with the exception of a MTRESET and a
MTLOAD command. MTIOCGET will be still accepted and tell
the caller that the drive is `offline '.
|
Example
|
-
mt -f /dev/nqft0 offl
or equivalently
-
mt -f /dev/nqft0 rewoffl
|
References
|
|