C code
|
-
struct mtop op = { MTUNLOCK, 0 };
result = ioctl(tapefd, MTIOCTOP, &op);
|
Description
|
Unlocks 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 will unlock the door instantly. You may also
need the MTUNLOCK command to clear the door lock previously set
by a MTLOCK (see MTLOCK) command.
|
Example
|
Clear the door lock
-
mt -f /dev/nqft0 unlock
|
References
|
|