C code
|
-
struct mtop op = { MTFSR, COUNT };
result = ioctl(tapefd, MTIOCTOP, &op);
|
Description
|
Forward space over COUNT tape blocks (block-size is set via
`MTSETBLK ', see MTSETBLK)
|
Notes
|
-
ftape-4.05 emulates blocks of a constant length. That is, `
MTFSR '
and `MTBSR ' don't skip floppy tape segments but blocks of a virtual
size between 1 kb and 62 kb depending on what was
specified with `MTSETBLK ' (see MTSETBLK).
-
One needs to use the non-rewinding devices when using this with the
mt program. See Rewinding devices and tape motion commands.
-
MTSEEK just modifies a variable and does not result in tape
motion.
|
Compatibility
|
-
When using ftape-3.04d and later versions up to ftape-4.02 neither
`
MTFSR ' nor `MTBSR ' can skip over file marks. An attempt to do
so will result in an `-EIO ' error code. This is different
with SCSI tapes and has been fixed in ftape-4.03.
-
In variable block size mode the argument is interpreted as the desired
position measured in bytes. Maybe this is a bug.
-
ftape-2.x resp. sftape didn't really implement this
command. ftape-2.x used this to let you you change the trace level by
specifying the trace level as argument to this command whereas
ftape-3.04d (and later versions) uses for this the command
MTSETDENSITY
(see MTSETDENSITY) because this will definitely never be used for
real tape operations supported by ftape-3.04d (and later versions).
|
Example
|
COUNT set to `5 ', i.e. skip over 5 tape blocks with
ftape-3.04d (and later versions):
-
mt -f /dev/nqft0 fsr 5
|
References
|
|