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
|
|