diff options
author | 2010-10-09 00:17:56 +0300 | |
---|---|---|
committer | 2010-10-08 17:16:22 -0500 | |
commit | 3e51d3c924aea8a1f1372e6c615b0a37b528121d (patch) | |
tree | 16cdd955fc95e4e1ca28faaac6524e51e0c271d4 /include/linux/mtio.h | |
parent | [SCSI] libsas: Don't issue commands to devices that have been hot-removed (diff) | |
download | linux-3e51d3c924aea8a1f1372e6c615b0a37b528121d.tar.gz linux-3e51d3c924aea8a1f1372e6c615b0a37b528121d.tar.bz2 linux-3e51d3c924aea8a1f1372e6c615b0a37b528121d.zip |
[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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtio.h b/include/linux/mtio.h index ef01d6aa5934..8f825756c459 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 */ |