C code
|
-
struct mtop op = { MTFSFM, COUNT };
result = ioctl(tapefd, MTIOCTOP, &op);
|
Description
|
Forward space over COUNT file marks. The tape is positioned at the
the BOT (Begin Of Tape) side of the last skipped file mark.
|
Notes
|
`mt -f /dev/qft0 fsfm ' (i.e. COUNT set to `1 ') positions
at the end of the current volume which indeed is just what
`position at the BOT side of the last skipped file mark ' means if
only one file mark has been skipped.
|
Limitations
|
With ftape-3.04d (and later versions) it is nevertheless impossible to use MTFSFM to
append data to a tape volume. Since version 3.03 all write access to the
tape is illegal unless the tape is located at either
BOT (Begin Of Tape) or EOD (End Of Data, end of the area
that already is occupied by data). EOD is defined to be the
location after the last file mark.
|
Example
|
skip to end of the current tape volume
-
mt -f /dev/nqft0 fsfm
|
References
|
|