/* structure for MTIOCTOP - mag tape op command */ struct mtop { short mt_op; /* operations defined below */ int mt_count; /* how many of them */
};
/* Magnetic Tape operations [Not all operations supported by all drivers]: */ #define MTRESET 0/* +reset drive in case of problems */ #define MTFSF 1/* forward space over FileMark, *positionatfirstrecordofnextfile
*/ #define MTBSF 2/* backward space FileMark (position before FM) */ #define MTFSR 3/* forward space record */ #define MTBSR 4/* backward space record */ #define MTWEOF 5/* write an end-of-file record (mark) */ #define MTREW 6/* rewind */ #define MTOFFL 7/* rewind and put the drive offline (eject?) */ #define MTNOP 8/* no op, set status only (read with MTIOCGET) */ #define MTRETEN 9/* retension tape */ #define MTBSFM 10/* +backward space FileMark, position at FM */ #define MTFSFM 11/* +forward space FileMark, position at FM */ #define MTEOM 12/* goto end of recorded media (for appending files). *MTEOMpositionsafterthelastFM,readyfor *appendinganotherfile.
*/ #define MTERASE 13/* erase tape -- be careful! */
#define MTRAS1 14/* run self test 1 (nondestructive) */ #define MTRAS2 15/* run self test 2 (destructive) */ #define MTRAS3 16/* reserved for self test 3 */
#define MTSETBLK 20/* set block length (SCSI) */ #define MTSETDENSITY 21/* set tape density (SCSI) */ #define MTSEEK 22/* seek to block (Tandberg, etc.) */ #define MTTELL 23/* tell block (Tandberg, etc.) */ #define MTSETDRVBUFFER 24/* set the drive buffering according to SCSI-2 */ /* ordinary buffered operation with code 1 */ #define MTFSS 25/* space forward over setmarks */ #define MTBSS 26/* space backward over setmarks */ #define MTWSM 27/* write setmarks */
#define MTLOCK 28/* lock the drive door */ #define MTUNLOCK 29/* unlock the drive door */ #define MTLOAD 30/* execute the SCSI load command */ #define MTUNLOAD 31/* execute the SCSI unload command */ #define MTCOMPRESSION 32/* control compression with SCSI mode page 15 */ #define MTSETPART 33/* Change the active tape partition */ #define MTMKPART 34/* Format the tape with one or two partitions */ #define MTWEOFI 35/* write an end-of-file record (mark) in immediate mode */
/* structure for MTIOCGET - mag tape get status command */
struct mtget { long mt_type; /* type of magtape device */ long mt_resid; /* residual count: (not sure) *numberofbytesignored,or *numberoffilesnotskipped,or *numberofrecordsnotskipped.
*/ /* the following registers are device dependent */ long mt_dsreg; /* status register */ long mt_gstat; /* generic (device independent) status */ long mt_erreg; /* error register */ /* The next two fields are not always used */
__kernel_daddr_t mt_fileno; /* number of current file on tape */
__kernel_daddr_t mt_blkno; /* current block number */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.