summaryrefslogtreecommitdiff
path: root/include/linux/mtio.h
diff options
context:
space:
mode:
authorKai Makisara <Kai.Makisara@kolumbus.fi>2010-10-08 21:17:56 (GMT)
committerJames Bottomley <James.Bottomley@suse.de>2010-10-08 22:16:22 (GMT)
commit3e51d3c924aea8a1f1372e6c615b0a37b528121d (patch)
tree16cdd955fc95e4e1ca28faaac6524e51e0c271d4 /include/linux/mtio.h
parent56dd2c0691a5a387b7b05835fe547dc6fade9407 (diff)
downloadlinux-fsl-qoriq-3e51d3c924aea8a1f1372e6c615b0a37b528121d.tar.xz
[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 */