aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtio.h
diff options
context:
space:
mode:
authorKai Makisara <Kai.Makisara@kolumbus.fi>2010-10-09 00:17:56 +0300
committerJames Bottomley <James.Bottomley@suse.de>2010-10-08 17:16:22 -0500
commit3e51d3c924aea8a1f1372e6c615b0a37b528121d (patch)
tree16cdd955fc95e4e1ca28faaac6524e51e0c271d4 /include/linux/mtio.h
parent56dd2c0691a5a387b7b05835fe547dc6fade9407 (diff)
downloadkernel_goldelico_gta04-3e51d3c924aea8a1f1372e6c615b0a37b528121d.zip
kernel_goldelico_gta04-3e51d3c924aea8a1f1372e6c615b0a37b528121d.tar.gz
kernel_goldelico_gta04-3e51d3c924aea8a1f1372e6c615b0a37b528121d.tar.bz2
[SCSI] st: add MTWEOFI to write filemarks without flushing drive buffer
This patch adds a new MTIOCTOP operation MTWEOFI that writes filemarks with immediate bit set. This means that the drive does not flush its buffer and the next file can be started immediately. This speeds up writing in applications that have to write multiple small files. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/linux/mtio.h')
-rw-r--r--include/linux/mtio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtio.h b/include/linux/mtio.h
index ef01d6a..8f82575 100644
--- a/include/linux/mtio.h
+++ b/include/linux/mtio.h
@@ -63,6 +63,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 */