diff options
Diffstat (limited to 'Documentation/scsi')
-rw-r--r-- | Documentation/scsi/st.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/scsi/st.txt b/Documentation/scsi/st.txt index 40752602c050..691ca292c24d 100644 --- a/Documentation/scsi/st.txt +++ b/Documentation/scsi/st.txt | |||
@@ -2,7 +2,7 @@ This file contains brief information about the SCSI tape driver. | |||
2 | The driver is currently maintained by Kai Mäkisara (email | 2 | The driver is currently maintained by Kai Mäkisara (email |
3 | Kai.Makisara@kolumbus.fi) | 3 | Kai.Makisara@kolumbus.fi) |
4 | 4 | ||
5 | Last modified: Sun Feb 24 21:59:07 2008 by kai.makisara | 5 | Last modified: Sun Aug 29 18:25:47 2010 by kai.makisara |
6 | 6 | ||
7 | 7 | ||
8 | BASICS | 8 | BASICS |
@@ -85,6 +85,17 @@ writing and the last operation has been a write. Two filemarks can be | |||
85 | optionally written. In both cases end of data is signified by | 85 | optionally written. In both cases end of data is signified by |
86 | returning zero bytes for two consecutive reads. | 86 | returning zero bytes for two consecutive reads. |
87 | 87 | ||
88 | Writing filemarks without the immediate bit set in the SCSI command block acts | ||
89 | as a synchronization point, i.e., all remaining data form the drive buffers is | ||
90 | written to tape before the command returns. This makes sure that write errors | ||
91 | are caught at that point, but this takes time. In some applications, several | ||
92 | consecutive files must be written fast. The MTWEOFI operation can be used to | ||
93 | write the filemarks without flushing the drive buffer. Writing filemark at | ||
94 | close() is always flushing the drive buffers. However, if the previous | ||
95 | operation is MTWEOFI, close() does not write a filemark. This can be used if | ||
96 | the program wants to close/open the tape device between files and wants to | ||
97 | skip waiting. | ||
98 | |||
88 | If rewind, offline, bsf, or seek is done and previous tape operation was | 99 | If rewind, offline, bsf, or seek is done and previous tape operation was |
89 | write, a filemark is written before moving tape. | 100 | write, a filemark is written before moving tape. |
90 | 101 | ||
@@ -301,6 +312,8 @@ MTBSR Space backward over count records. | |||
301 | MTFSS Space forward over count setmarks. | 312 | MTFSS Space forward over count setmarks. |
302 | MTBSS Space backward over count setmarks. | 313 | MTBSS Space backward over count setmarks. |
303 | MTWEOF Write count filemarks. | 314 | MTWEOF Write count filemarks. |
315 | MTWEOFI Write count filemarks with immediate bit set (i.e., does not | ||
316 | wait until data is on tape) | ||
304 | MTWSM Write count setmarks. | 317 | MTWSM Write count setmarks. |
305 | MTREW Rewind tape. | 318 | MTREW Rewind tape. |
306 | MTOFFL Set device off line (often rewind plus eject). | 319 | MTOFFL Set device off line (often rewind plus eject). |