PREV UP NEXT The Ftape Installation and Usage Guide


8.8.1.20: MTLOCK

C code
struct mtop op = { MTLOCK, 0 };
result = ioctl(tapefd, MTIOCTOP, &op);

Description

Locks the tape drive door.


Limitations

Only supported by Iomega Ditto Max tape drive. It will be treated as a no-op with other tape drives.


Notes

ft locks the tape drive door automatically when you open the device, and unlocks it when the device is closed. If you call this command, then ftape keeps the door locked even when the device has been closed. In this case you have to use the MTUNLOCK (see MTUNLOCK) command or the MTRESET (see MTRESET) explicitly or you never will be able to open the door again until power is cycled.


Example

Lock the tape drive door

mt -f /dev/nqft0 lock

References
MTUNLOCK
MTRESET
MTSETPART

ftape logo Use these buttons to jump to the top menu

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