The Ftape Installation and Usage Guide - Ioctls
MTIOCFTFORMAT
Most of the formatting stuff has been moved from the kernel level device
driver to a user level program ftformat
(1). Please refer to the documentation of that
program for further information how to actually format floppy tape
cartridges. See Ftformat (info file ftape-tools).
The following gives only an outline of the ioctl interface to the kernel
level device driver. The argument to the MTIOCFTFORMAT
ioctl has
to be of type struct mtftformat
. The definitions of that
structure and of the ioctl are included in a subsection for your
reference.
Note that the MTIOCFTFORMAT
ioctl has to be accompanied by
several MTIOCFTCMD
ioctl calls. See MTIOCFTCMD. It has to be
understood that the MTIOCFTFORMAT
does not switch the tape
drive to format mode, neither does it erase the old format by means of
the `physical forward
' or `physical reverse
' QIC-117
floppy tape commands.
There is subsection for each of the operations that can be performed
with the MTIOCFTFORMAT
ioctl and an additional subsection that is
a quotation from
[/usr/src/ftape-4.03/]include/linux/mtio.h
and contains the ioctl definitions.
FTFORMAT compatibility | Differences between ftape-3.04d and ftape-4.03 |
struct mtftformat | MTIOCFTFORMAT ioctl definition |
FTFMT_SET_PARMS | Set software parameters |
FTFMT_GET_PARMS | Get software parameters |
FTFMT_FORMAT_TRACK | Start formatting a tape track |
FTFMT_STATUS | Monitor formatting a tape track |
FTFMT_VERIFY | Verify a floppy tape segment |
(1) You can download it as part of the ftape-tools
package from the
Ftape Home Page
or from ftp://sunsite.unc.edu/pub/Linux/kernel/tapes/
![]() |
Use these buttons to jump to the top menu |