Package: mt-st

It is not clear what the impact would be, but I think it would be
easier to maintain this package if the mtio.h copy would not be used
and instead the system installed one would be used instead.

Here are the diff (as of today on wheezy):

$ diff -u mtio.h /usr/include/linux/mtio.h
--- mtio.h 2008-02-20 20:31:49.000000000 +0100
+++ /usr/include/linux/mtio.h 2014-01-11 01:15:51.000000000 +0100
@@ -1,9 +1,8 @@
 /*
  * linux/mtio.h header file for Linux. Written by H. Bergman
  *
- * Sanitized version for mt/stinit (definitions not used by these
- * programs have been removed) 7 Oct 2007/Kai M�kisara
- *
+ * Modified for special ioctls provided by zftape in September 1997
+ * by C.-J. Heine.
  */

 #ifndef _LINUX_MTIO_H
@@ -64,6 +63,7 @@
 #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 */

@@ -110,6 +110,12 @@
 #define MT_ISSCSI1 0x71 /* Generic ANSI SCSI-1 tape unit */
 #define MT_ISSCSI2 0x72 /* Generic ANSI SCSI-2 tape unit */

+/* QIC-40/80/3010/3020 ftape supported drives.
+ * 20bit vendor ID + 0x800000 (see ftape-vendors.h)
+ */
+#define MT_ISFTAPE_UNKNOWN 0x800000 /* obsolete */
+#define MT_ISFTAPE_FLAG 0x800000
+

 /* structure for MTIOCPOS - mag tape get position command */

@@ -117,26 +123,12 @@
  long mt_blkno; /* current block number */
 };

+
 /* mag tape io control commands */
 #define MTIOCTOP _IOW('m', 1, struct mtop) /* do a mag tape op */
 #define MTIOCGET _IOR('m', 2, struct mtget) /* get tape status */
 #define MTIOCPOS _IOR('m', 3, struct mtpos) /* get tape position */

-/* The next two are used by the QIC-02 driver for runtime reconfiguration.
- * See tpqic02.h for struct mtconfiginfo.
- */
-#define MTIOCGETCONFIG _IOR('m', 4, struct mtconfiginfo) /* get tape config */
-#define MTIOCSETCONFIG _IOW('m', 5, struct mtconfiginfo) /* set tape config */
-
-/* the next six are used by the floppy ftape drivers and its frontends
- * sorry, but MTIOCTOP commands are write only.
- */
-#define MTIOCRDFTSEG    _IOWR('m', 6, struct mtftseg)  /* read a segment */
-#define MTIOCWRFTSEG    _IOWR('m', 7, struct mtftseg)   /* write a segment */
-#define MTIOCVOLINFO _IOR('m',  8, struct mtvolinfo) /* info about volume */
-#define MTIOCGETSIZE    _IOR('m',  9, struct mttapesize)/* get cartridge size*/
-#define MTIOCFTFORMAT   _IOWR('m', 10, struct mtftformat) /* format ftape */
-#define MTIOCFTCMD _IOWR('m', 11, struct mtftcmd) /* send QIC-117 cmd */

 /* Generic Mag Tape (device independent) status macros for examining
  * mt_gstat -- HP-UX compatible.
@@ -202,6 +194,7 @@
 #define MT_ST_SYSV              0x1000
 #define MT_ST_NOWAIT            0x2000
 #define MT_ST_SILI 0x4000
+#define MT_ST_NOWAIT_EOF 0x8000

 /* The mode parameters to be controlled. Parameter chosen with bits 20-28 */
 #define MT_ST_CLEAR_DEFAULT 0xfffff


Thanks


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to