The Ftape Installation and Usage Guide - MTIOCFTFORMAT
FTFMT_SET_PARMS
-- set software parameters
This ioctl informs the kernel driver module about the parameters that
will be used when formatting the tape cartridge. Note that the kernel
driver does not alter the hardware state of the tape drive, i.e. it
doesn't set the number of format segment nor does it program the tape
drive to the desired QIC standard. This must be done using the
MTIOCFTCMD
ioctl (see MTIOCFTCMD). FTFMT_SET_PARMS
merely results in recalibration of the data rate and in the
recalculation of timeouts and synchronises the user level formatting
program with the hardware driver. See struct mtftformat for the
complete definition of the data structures. The following parameters
must be set:
struct ftfmtparms { unsigned char ft_qicstd; /* QIC-40/QIC-80/QIC-3010/QIC-3020 */ unsigned char ft_fmtcode; /* Refer to the QIC specs */ unsigned char ft_fhm; /* floppy head max */ unsigned char ft_ftm; /* floppy track max */ unsigned short ft_spt; /* segments per track */ unsigned short ft_tpc; /* tracks per cartridge */ unsigned char ft_gap3; /* size of gap3, for FORMAT_TRK */ unsigned char ft_ffb; /* format filler byte */ };
Please refer also to the QIC standards `QIC-40
',
`QIC-80
', `QIC-3010
', `QIC-3020
' and `QIC-117
' for
the correct settings. The standards can be found at the QIC organisations home page.
ft_qicstd
|
This must be set to the desired QIC standard. It should be one out of
These symbols are defined in [/usr/src/ftape-4.04/]include/linux/qic117.h as follows
| ||||
ft_fmtcode
|
This must be set to the format code that shall be written to the header segments. The possible values are defined in [/usr/src/ftape-4.04/]include/linux/ftape-header-segment.h
| ||||
ft_fhm, ft_ftm
|
These are abbreviations for ` | ||||
ft_spt, ft_tpc
|
These parameters give the tape cartridge geometry. | ||||
ft_gap3
|
A number giving the length of gap3 during the formatting
process. This is rather technical. Read (e.g.) the specifications of the
Intel 82078 64 Pin | ||||
ft_ffb
|
The value gap3 is filled with. The recommended values are
mentioned in the ` |
![]() |
Use these buttons to jump to the top menu |