PREV UP NEXT The Ftape Installation and Usage Guide


8.8.1.8: MTOFFL

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
MTRESET.
MTLOAD.
MTUNLOAD.
MTREW.
Rewinding devices.

ftape logo Use these buttons to jump to the top menu

TOP (previous node) TOP (parent node) TOP (next node) TOP (this node)