PREV UP NEXT The Ftape Installation and Usage Guide


8.8.1.9: MTNOP

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

Description

`No operation'. This command is supposed to set the tape status only (to be read with MTIOCGET, see Query the tape status).


Notes

For ftape-3.04d (and later versions) this results in reading the header segments if this hasn't been done already and otherwise flushes the write buffers to tape (unless the driver is off-line, see MTOFFL). This was a real no-op for ftape-2.x resp. sftape.


Example

This command cannot be issued alone by the mt program but a `mt status' results in sending the MTNOP command to the drive before reading the tape status with MTIOCGET

mt -f /dev/nqft0 status

References
MTIOCGET
MTOFFL

ftape logo Use these buttons to jump to the top menu

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