From 72f9eda87d025a9f842d57432c2bd078f062294e Mon Sep 17 00:00:00 2001 From: Chris Dinneen Date: Tue, 31 Oct 2023 12:55:16 +0800 Subject: [PATCH] Backport Linux Kernel WEOFI ioctls --- mtio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mtio.h b/mtio.h index 1e16117..7926d1a 100644 --- a/mtio.h +++ b/mtio.h @@ -64,6 +64,7 @@ struct mtop { #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 */ @@ -202,6 +203,7 @@ struct mtpos { #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