OSDN Git Service

109bfd8b78ffaa0bb0be67acc958485d3e7295e4
[linuxjm/LDP_man-pages.git] / draft / man4 / st.4
1 .\" Copyright 1995 Robert K. Nichols (Robert.K.Nichols@att.com)
2 .\" Copyright 1999-2005 Kai Mテ、kisara (Kai.Makisara@kolumbus.fi)
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\" Japanese Version Copyright (c) 1998 ISHIKAWA Mutsumi
25 .\"         all rights reserved.
26 .\" Translated Tue Feb 10 15:09:29 JST 1998
27 .\"     by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
28 .\" Updated Sun Mar 12 2000 by NAKANO Takeo <nakano@st.seikei.ac.jp>
29 .\" Updated Sun Apr 24 2005 by NAKANO Takeo <nakano@st.seikei.ac.jp
30 .\"
31 .TH ST 4  2010-09-04 "Linux" "Linux Programmer's Manual"
32 .\"O .SH NAME
33 .\"O st \- SCSI tape device
34 .SH 名前
35 st \- SCSI テープデバイス
36 .\"O .SH SYNOPSIS
37 .SH 書式
38 .nf
39 .B #include <sys/mtio.h>
40 .sp
41 .BI "int ioctl(int " fd ", int " request " [, (void *)" arg3 "]);"
42 .BI "int ioctl(int " fd ", MTIOCTOP, (struct mtop *)" mt_cmd );
43 .BI "int ioctl(int " fd ", MTIOCGET, (struct mtget *)" mt_status );
44 .BI "int ioctl(int " fd ", MTIOCPOS, (struct mtpos *)" mt_pos );
45 .fi
46 .\"O .SH DESCRIPTION
47 .SH 説明
48 .\"O The
49 .\"O .B st
50 .\"O driver provides the interface to a variety of SCSI tape devices.
51 .\"O Currently, the driver takes control of all detected devices of type
52 .\"O \(lqsequential-access\(rq.
53 .\"O The
54 .\"O .B st
55 .\"O driver uses major device number 9.
56 .B st
57 ドライバーは様々な SCSI テープデバイスのインターフェイスを提供する。
58 現在では、ドライバーは検出された全ての
59 \(lqシーケンシャルアクセス (sequential-access) \(rq タイプのデバイスへの
60 制御を行う。
61 .B st
62 ドライバーはメジャーデバイス番号 9 を用いる。
63 .PP
64 .\"O Each device uses eight minor device numbers.
65 .\"O The lowermost five bits
66 .\"O in the minor numbers are assigned sequentially in the order of
67 .\"O detection.
68 .\"O In the 2.6 kernel, the bits above the eight lowermost bits are
69 .\"O concatenated to the five lowermost bits to form the tape number.
70 .\"O The minor numbers can be grouped into
71 .\"O two sets of four numbers: the principal (auto-rewind) minor device numbers,
72 .\"O .IR n ,
73 .\"O and the \(lqno-rewind\(rq device numbers,
74 .\"O .RI ( n " + 128)."
75 .\"O Devices opened using the principal device number will be sent a
76 .\"O .BR REWIND
77 .\"O command when they are closed.
78 .\"O Devices opened using the \(lqno-rewind\(rq device number will not.
79 .\"O (Note that using an auto-rewind device for positioning the tape with,
80 .\"O for instance, mt does not lead to the desired result: the tape is
81 .\"O rewound after the mt command and the next command starts from the
82 .\"O beginning of the tape).
83 それぞれのデバイスは 8 つのマイナーデバイス番号を使う。
84 マイナー番号の低位側の 5 ビットは、検出された順に割り当てられる。
85 カーネル 2.6 では、
86 低位側 8 ビットよりも上位にあるビット群がこの 5 ビットに連結 (concatenate)
87 され、テーブ番号となる。
88 マイナー番号は、それぞれ 4 つの数字からなる二つのセットに
89 グループ分けされる。
90 基本 (自動巻き戻し) デバイス番号
91 .IR n 、
92 および \(lq非巻き戻し (no-rewind) \(rq デバイス番号
93 .RI ( n " + 128)."
94 である。
95 基本デバイス番号を用いてオープンされたデバイスには、
96 クローズする時に
97 .B REWIND
98 コマンドが送られる。
99 \(lq非巻き戻し\(rq デバイス番号を用いてオープンされた場合は
100 \s-1REWIND\s+1 コマンドは送られない
101 (自動巻き戻しデバイスをテープの位置決めに (例えば mt で) 用いても、
102 望む結果は得られない。テープは mt コマンドの後で巻き戻され、
103 次のコマンドはテープの先頭から始まってしまう)。
104 .PP
105 .\"O Within each group, four minor numbers are available to define
106 .\"O devices with different characteristics (block size, compression,
107 .\"O density, etc.)
108 .\"O When the system starts up, only the first device is
109 .\"O available.
110 .\"O The other three are activated when the default
111 .\"O characteristics are defined (see below).
112 .\"O (By changing compile-time
113 .\"O constants, it is possible to change the balance between the maximum
114 .\"O number of tape drives and the number of minor numbers for each
115 .\"O drive.
116 .\"O The default allocation allows control of 32 tape drives.
117 .\"O For instance, it is possible to control up to 64 tape drives
118 .\"O with two minor numbers for different options.)
119 それぞれのグループで、異なった特性 (ブロックサイズ・圧縮・
120 密度など) のデバイスを定義するために 4 つのマイナー番号が利用できる。
121 システムが起動したときには、最初のデバイスだけが使える。
122 他の 3 つはデフォルトの特性が定義されて初めて使えるようになる (後述)。
123 (コンパイル時の定数を変更することによって、テープドライブの最大数と、
124 それぞれのドライブに割り当てられるマイナー番号の個数とを調整できる。
125 デフォルトの割り当てでは 32 台までのテープドライブを制御できる。
126 例えば 64 台までのテープドライブを、異なったオプションを持つ
127 二つのマイナー番号で制御するようにもできる。)
128 .PP
129 .\"O Devices are typically created by:
130 デバイスは普通次のように作られる:
131 .in +4n
132 .nf
133
134 mknod \-m 666 /dev/st0 c 9 0
135 mknod \-m 666 /dev/st0l c 9 32
136 mknod \-m 666 /dev/st0m c 9 64
137 mknod \-m 666 /dev/st0a c 9 96
138 mknod \-m 666 /dev/nst0 c 9 128
139 mknod \-m 666 /dev/nst0l c 9 160
140 mknod \-m 666 /dev/nst0m c 9 192
141 mknod \-m 666 /dev/nst0a c 9 224
142 .fi
143 .in
144 .PP
145 .\"O There is no corresponding block device.
146 これらには対応するブロックデバイスは存在しない。
147 .PP
148 .\"O The driver uses an internal buffer that has to be large enough to hold
149 .\"O at least one tape block.
150 .\"O In kernels before 2.1.121, the buffer is
151 .\"O allocated as one contiguous block.
152 .\"O This limits the block size to the
153 .\"O largest contiguous block of memory the kernel allocator can provide.
154 .\"O The limit is currently 128 kB for 32-bit architectures and
155 .\"O 256 kB for 64-bit architectures.
156 .\"O In newer kernels the driver
157 .\"O allocates the buffer in several parts if necessary.
158 .\"O By default, the
159 .\"O maximum number of parts is 16.
160 .\"O This means that the maximum block size
161 .\"O is very large (2 MB if allocation of 16 blocks of 128 kB succeeds).
162 ドライバは内部バッファを使い、その大きさは少なくともテープの
163 1 ブロックを保持できるように取られる。 2.1.121 以前のカーネルでは、
164 バッファは連続する一つのブロックとして割り当てられる。この方法だと、
165 ブロックサイズの最大値はカーネルの割り当て可能な連続メモリブロックに
166 制限される。この制限は 32 ビットアーキテクチャでは 128 kB、
167 64 ビットアーキテクチャでは 256 kB である。これ以降のカーネルでは、
168 ドライバは必要に応じていくつかにわかれたバッファを割り当てる。
169 デフォルトでは 16 個までの部分に分割できる。すなわち
170 ブロックサイズの最大値は非常に大きい (128 kB のブロック 16 個の
171 割り当てに成功すれば 2 MB となる)。
172 .PP
173 .\"O The driver's internal buffer size is determined by a compile-time
174 .\"O constant which can be overridden with a kernel startup option.
175 .\"O In addition to this, the driver tries to allocate a larger temporary
176 .\"O buffer at run time if necessary.
177 .\"O However, run-time allocation of large
178 .\"O contiguous blocks of memory may fail and it is advisable not to rely
179 .\"O too much on dynamic buffer allocation with kernels older than 2.1.121
180 .\"O (this applies also to demand-loading the driver with kerneld or kmod).
181 ドライバの内部バッファのサイズはコンパイル時の定数で定義される。
182 これはカーネルの起動時オプションによって上書き可能である。
183 さらにドライバは実行時にも、必要に応じてより大きな一時バッファを
184 割り当てようとする。しかし実行時に大きな連続メモリブロックを
185 割り当てようとすると失敗することがあるので、 2.1.121
186 以前のカーネルでは、動的なバッファ割り当てはあまりあてにしないほうが良い
187 (これは kerneld や kmod によるドライバのデマンドロードに関しても当てはまる)。
188 .PP
189 .\"O The driver does not specifically support any tape drive brand or
190 .\"O model.
191 .\"O After system start-up the tape device options are defined by
192 .\"O the drive firmware.
193 .\"O For example, if the drive firmware selects fixed-block mode,
194 .\"O the tape device uses fixed-block mode.
195 .\"O The options can
196 .\"O be changed with explicit
197 .\"O .BR ioctl (2)
198 .\"O calls and remain in effect when the device is closed and reopened.
199 .\"O Setting the options affects both the auto-rewind and the nonrewind
200 .\"O device.
201 ドライバはドライブのメーカやモデルを特定してサポートするわけではない。
202 システムが起動すると、テープデバイスのオプションがドライブの
203 ファームウェアによって定義される。例えば、
204 ドライブのファームウェアが固定長ブロックモードを選択すれば、
205 テープデバイスは固定長ブロックモードを使うことになる。このオプションは
206 .BR ioctl (2)
207 コールを明示的に使えば変更でき、
208 その変更はデバイスがクローズされて再びオープンされたときも残る。
209 .\"nakano: 逆か?
210 オプションの設定は、
211 自動巻き戻しデバイスと非巻き戻しデバイスの両方に影響する。
212 .PP
213 .\"O Different options can be specified for the different devices within
214 .\"O the subgroup of four.
215 .\"O The options take effect when the device is
216 .\"O opened.
217 .\"O For example, the system administrator can define
218 .\"O one device that writes in fixed-block mode with a certain block size,
219 .\"O and one which writes in variable-block mode (if the drive supports
220 .\"O both modes).
221 4 つのサブグループそれぞれのデバイスに対して異なるオプションを
222 与えることができる。オプションはデバイスがオープンされたときに
223 効力を発揮する。例えば、システム管理者はあるデバイスを
224 適当なブロックサイズの固定長ブロックモードで書き込むように定義し、
225 別のデバイスを可変長ブロックモードで書き込むようにできる (ドライブが
226 両方のモードをサポートしていれば)。
227 .PP
228 .\"O The driver supports
229 .\"O .B tape partitions
230 .\"O if they are supported by the drive.
231 .\"O (Note that the tape partitions
232 .\"O have nothing to do with disk partitions.
233 .\"O A partitioned tape can be
234 .\"O seen as several logical tapes within one medium.)
235 .\"O Partition support has to be enabled with an
236 .\"O .BR ioctl (2).
237 .\"O The tape
238 .\"O location is preserved within each partition across partition changes.
239 .\"O The partition used for subsequent tape operations is
240 .\"O selected with an
241 .\"O .BR ioctl (2).
242 .\"O The partition switch is executed together with
243 .\"O the next tape operation in order to avoid unnecessary tape
244 .\"O movement.
245 .\"O The maximum number of partitions on a tape is defined by a
246 .\"O compile-time constant (originally four).
247 .\"O The driver contains an
248 .\"O .BR ioctl (2)
249 .\"O that can format a tape with either one or two partitions.
250 このドライバは、
251 .B テープのパーティション
252 をサポートしている (ドライブがサポートしている場合)。
253 (テープのパーティションはディスクパーティションとはなんの関係もない。
254 パーティション化されたテープは、一つのメディアに複数の論理テープが
255 存在するかのように見える。)
256 パーティションのサポートは
257 .BR ioctl (2)
258 によって有効にできる。
259 パーティションが変更されると、
260 テープの位置はそれぞれのパーティション内部で保存される。
261 パーティションの選択は
262 .BR ioctl (2)
263 で行う。
264 それ以降のテープ操作の対象は、そのパーティションになる。
265 パーティションの切り替えは、次のテープ操作と同時に行われ、
266 不必要なテープ移動をしなくてすむようになっている。
267 一つのテープにおけるパーティションの最大数は
268 コンパイル時の定数によって定義される (通常は 4)。
269 ドライバには、テープの 1 つまたは
270 2 つのパーティションをフォーマットできるような
271 .BR ioctl (2)
272 が用意されている。
273 .PP
274 .\"O Device
275 .\"O .I /dev/tape
276 .\"O is usually created as a hard or soft link to the default tape device
277 .\"O on the system.
278 通常、システムのデフォルトのテープデバイスに対するハードリンク
279 またはソフトリンクとして、デバイス
280 .I /dev/tape
281 が作成される。
282 .PP
283 .\"O Starting from kernel 2.6.2, the driver exports in the sysfs directory
284 .\"O .I /sys/class/scsi_tape
285 .\"O the attached devices and some parameters assigned to the devices.
286 カーネル 2.6.2 以降では、このドライバは sysfs ディレクトリ
287 .I /sys/class/scsi_tape
288 に、アタッチしたデバイスとそのデバイスに割当てたパラメータをエクスポートする。
289 .\"O .SS "Data Transfer"
290 .SS データ転送
291 .\"O The driver supports operation in both fixed-block mode and
292 .\"O variable-block mode (if supported by the drive).
293 .\"O In fixed-block mode the drive
294 .\"O writes blocks of the specified size and the block size is not
295 .\"O dependent on the byte counts of the write system calls.
296 .\"O In variable-block mode one tape block is written for each write call
297 .\"O and the byte
298 .\"O count determines the size of the corresponding tape block.
299 .\"O Note that
300 .\"O the blocks on the tape don't contain any information about the
301 .\"O writing mode: when reading, the only important thing is to use
302 .\"O commands that accept the block sizes on the tape.
303 このドライバは固定長ブロックモードと可変長ブロックモードの
304 両方をサポートしている (ドライブがサポートしていれば)。
305 固定長ブロックモードでは、ドライブは決まったサイズのブロックを
306 (複数個) 書き込む。このブロックサイズは
307 write システムコールのバイト数によらない。
308 可変長ブロックモードでは、
309 write コールごとに一つのテープブロックに書き込みが行われる。
310 したがってバイト数が対応するテープブロックのサイズを決める。
311 テープ上のブロックには、書き込みモードの情報は一切含まれない。
312 読み込みのときに重要なことは、テープのブロックサイズを受け入れる
313 コマンドを使うかどうかだけである。
314 .PP
315 .\"O In variable-block mode the read byte count does not have to match
316 .\"O the tape block size exactly.
317 .\"O If the byte count is larger than the
318 .\"O next block on tape, the driver returns the data and the function
319 .\"O returns the actual block size.
320 .\"O If the block size is larger than the
321 .\"O byte count, the requested amount of data from the start of the block
322 .\"O is returned and the rest of the block is discarded.
323 可変長ブロックモードでは、読み込みバイト数はテープのブロックサイズと
324 必ずしも一致していなくても良い。バイト数がテープの次のブロックよりも
325 大きければ、ドライバはそのデータを返し、関数は実際のブロックサイズを返す。
326 ブロックサイズがバイト数よりも大きければ、要求された分のデータが
327 ブロックの先頭から読み込まれて返され、ブロックの残りは破棄される。
328 .PP
329 .\"O In fixed-block mode the read byte counts can be arbitrary if
330 .\"O buffering is enabled, or a multiple of the tape block size if
331 .\"O buffering is disabled.
332 .\"O Kernels before 2.1.121 allow writes with
333 .\"O arbitrary byte count if buffering is enabled.
334 .\"O In all other cases
335 .\"O (kernel before 2.1.121 with buffering disabled or newer kernel) the
336 .\"O write byte count must be a multiple of the tape block size.
337 固定長ブロックモードでは、バッファリングが有効になっていれば
338 読み込みバイト数は任意の大きさでよい。バッファリングが無効の場合は、
339 テープのブロックサイズの整数倍でなければならない。 2.1.121 以前の
340 カーネルでは、バッファリングが有効な場合には
341 任意のバイト数の書き込みができる。その他の場合すべて
342 (2.1.121 以前のカーネルでバッファが無効な場合と、新しいカーネルの場合)
343 では、書き込みバイト数はテープブロックサイズの整数倍でなければならない。
344 .PP
345 .\"O In the 2.6 kernel, the driver tries to use direct transfers between the user
346 .\"O buffer and the device.
347 .\"O If this is not possible, the driver's internal buffer
348 .\"O is used.
349 .\"O The reasons for not using direct transfers include improper alignment
350 .\"O of the user buffer (default is 512 bytes but this can be changed by the HBA
351 .\"O driver), one of more pages of the user buffer not reachable by the
352 .\"O SCSI adapter, etc.
353 2.6 カーネルでは、このドライバはユーザバッファとデバイス間で、
354 データの直接転送 (direct transfer) を試みる。
355 これが不可能な場合は、ドライバの内部バッファを用いる。
356 直接転送ができない理由としては、ユーザバッファのアラインメントが適切でない
357 (デフォルトは 512 バイトだが HBA ドライバによって変更されている可能性がある)、
358 ユーザバッファのページのどれかが SCSI アダプタから見えない、
359 などが考えられる。
360 .PP
361 .\"O A filemark is automatically written to tape if the last tape operation
362 .\"O before close was a write.
363 テープをクローズする直前のテープ操作命令が書き込みであれば、
364 ファイルマークが自動的にテープへ書き込まれる。
365 .PP
366 .\"O When a filemark is encountered while reading, the following
367 .\"O happens.
368 .\"O If there are data remaining in the buffer when the filemark
369 .\"O is found, the buffered data is returned.
370 .\"O The next read returns zero
371 .\"O bytes.
372 .\"O The following read returns data from the next file.
373 .\"O The end of
374 .\"O recorded data is signaled by returning zero bytes for two consecutive
375 .\"O read calls.
376 .\"O The third read returns an error.
377 読み込み時にファイルマークに出会うと、以下が実行される。
378 ファイルマークが見付かったときにバッファにデータが残っていると、
379 バッファのデータが返される。次の読み込み操作は 0 バイトを返す。
380 その次の読み込みは次のファイルからのデータを返す。
381 記録データの末尾は、読み込み操作が二回続けて
382 0 バイトを返して来るかたちで通知される。三回目の読み込みはエラーを返す。
383 .\"O .SS Ioctls
384 .SS ioctl
385 .\"O The driver supports three
386 .\"O .BR ioctl (2)
387 .\"O requests.
388 .\"O Requests not recognized by the
389 .\"O .B st
390 .\"O driver are passed to the
391 .\"O .B SCSI
392 .\"O driver.
393 .\"O The definitions below are from
394 .\"O .IR /usr/include/linux/mtio.h :
395 ドライバは 3 つの
396 .BR ioctl (2)
397 要求をサポートしている。
398 .B st
399 ドライバによって認識されなかった要求は
400 .B SCSI
401 ドライバにわたされる。
402 以下の定義は
403 .I /usr/include/linux/mtio.h
404 による。
405 .\"O .SS "MTIOCTOP \(em Perform a tape operation"
406 .SS "MTIOCTOP \(em テープ操作の実行"
407 .PP
408 .\"O This request takes an argument of type
409 .\"O .IR "(struct mtop *)" .
410 .\"O Not all drives support all operations.
411 .\"O The driver returns an
412 .\"O .B EIO
413 .\"O error if the drive rejects an operation.
414 この要求は
415 .I "(struct mtop *)"
416 型の引数をとる。全てのドライブが全ての操作をサポートしているわけではない。
417 ドライブが操作を拒否すると、ドライバは
418 .B EIO
419 エラーを返す。
420 .PP
421 .in +4n
422 .nf
423 /* Structure for MTIOCTOP \- mag tape op command: */
424 struct mtop {
425     short   mt_op;       /* operations defined below */
426     int     mt_count;    /* how many of them */
427 };
428 .fi
429 .in
430 .PP
431 .\"O Magnetic Tape operations for normal tape use:
432 通常のテープ利用のための磁気テープ操作:
433 .TP 14
434 .B MTBSF
435 .\"O Backward space over
436 .\"O .I mt_count
437 .\"O filemarks.
438 .I mt_count
439 個のファイルマーク (filemark) 分の後方スペース (backward space)。
440 .TP
441 .B MTBSFM
442 .\"O Backward space over
443 .\"O .I mt_count
444 .\"O filemarks.
445 .\"O Reposition the tape to the EOT side of the last filemark.
446 .I mt_count
447 個のファイルマーク分の後方スペース。
448 テープの位置を最後のファイルマークの EOT 側に変更する。
449 .TP
450 .B MTBSR
451 .\"O Backward space over
452 .\"O .I mt_count
453 .\"O records (tape blocks).
454 .I mt_count
455 個のレコード (テープブロック) 分の後方スペース。
456 .TP
457 .B MTBSS
458 .\"O Backward space over
459 .\"O .I mt_count
460 .\"O setmarks.
461 .I mt_count
462 個のセットマーク分の後方スペース。
463 .TP
464 .B MTCOMPRESSION
465 .\"O Enable compression of tape data within the drive if
466 .\"O .I mt_count
467 .\"O is nonzero and disable compression if
468 .\"O .I mt_count
469 .\"O is zero.
470 .\"O This command uses the MODE page 15 supported by most DATs.
471 .I mt_count
472 が 0 以外なら、ドライブのデータ圧縮を有効にする。
473 0 なら圧縮を無効にする。このコマンドは MODE ページ 15 を用いる。
474 これはほとんどの DAT でサポートされている。
475 .TP
476 .B MTEOM
477 .\"O Go to the end of the recorded media (for appending files).
478 (ファイルを追加するために) メディアの記録部分の最後まで進める。
479 .TP
480 .B MTERASE
481 .\"O Erase tape.
482 .\"O With 2.6 kernel, short erase (mark tape empty) is performed if the
483 .\"O argument is zero.
484 .\"O Otherwise long erase (erase all) is done.
485 テープの内容を消去する。
486 2.6 カーネルでは、引数が 0 ならば short erase (テープが空だと印をつける)
487 を行う。それ以外の場合は long erase (全体を消去する) を行う。
488 .TP
489 .B MTFSF
490 .\"O Forward space over
491 .\"O .I mt_count
492 .\"O filemarks.
493 .I mt_count
494 個のファイルマーク分の前方スペース (forward space)。
495 .TP
496 .B MTFSFM
497 .\"O Forward space over
498 .\"O .I mt_count
499 .\"O filemarks.
500 .\"O Reposition the tape to the BOT side of the last filemark.
501 .I mt_count
502 個のファイルマーク分の前方スペース。
503 テープの位置は最後のファイルマークの BOT 側変更される。
504 .TP
505 .B MTFSR
506 .\"O Forward space over
507 .\"O .I mt_count
508 .\"O records (tape blocks).
509 .I mt_count
510 個のレコード (テープブロック) 分の前方スペース。
511 .TP
512 .B MTFSS
513 .\"O Forward space over
514 .\"O .I mt_count
515 .\"O setmarks.
516 .I mt_count
517 個のセットマーク分の前方スペース。
518 .TP
519 .B MTLOAD
520 .\"O Execute the SCSI load command.
521 .\"O A special case is available for some HP
522 .\"O autoloaders.
523 .\"O If
524 .\"O .I mt_count
525 .\"O is the constant
526 .\"O .B MT_ST_HPLOADER_OFFSET
527 .\"O plus a number, the number is
528 .\"O sent to the drive to control the autoloader.
529 SCSI ロードコマンドを実行する。 HP オートローダに限って利用できる。
530 .\"nakano: あってる?
531 .I mt_count
532 が定数
533 .B MT_ST_HPLOADER_OFFSET
534 とある数値の和である場合、
535 その数値がドライブに送られ、オートローダの制御に用いられる。
536 .TP
537 .B MTLOCK
538 .\"O Lock the tape drive door.
539 テープドライブの扉をロックする。
540 .TP
541 .B MTMKPART
542 .\"O Format the tape into one or two partitions.
543 .\"O If
544 .\"O .I mt_count
545 .\"O is nonzero, it gives the size of the first partition and the second
546 .\"O partition contains the rest of the tape.
547 .\"O If
548 .\"O .I mt_count
549 .\"O is zero, the tape is formatted into one partition.
550 .\"O This command is not allowed for a drive unless the partition support
551 .\"O is enabled for the drive (see
552 .\"O .BR MT_ST_CAN_PARTITIONS
553 .\"O below).
554 テープを 1 または 2 パーティションにフォーマットする。
555 .I mt_count
556 が 0 でなければ、これが最初のパーティションのサイズを与え、
557 二番目のパーティションがテープの残りになる。
558 .I mt_count
559 が 0 の場合は、テープは一つのパーティションとしてフォーマットされる。
560 このコマンドは、パーティションのサポートが有効にされた
561 ドライブでなければ使えない (以下の
562 .B MT_ST_CAN_PARTITIONS
563 を見よ)。
564 .TP
565 .B MTNOP
566 .\"O No op\(emflushes the driver's buffer as a side effect.
567 .\"O Should be used before reading status with
568 .\"O .BR MTIOCGET .
569 何も操作を行わない。\(em副次的な効果として、ドライバーのバッファ
570 をフラッシュする。
571 .B MTIOCGET
572 を使って状態を読み出す前にはこの操作を行うべきである。
573 .TP
574 .B MTOFFL
575 .\"O Rewind and put the drive off line.
576 巻き戻し (rewind) を行い、ドライブをオフライン (off line) にする。
577 .TP
578 .B MTRESET
579 .\"O Reset drive.
580 ドライブをリセットする。
581 .TP
582 .B MTRETEN
583 .\"O Re-tension tape.
584 テープをリテンション (re-tension) する
585 (テープを最後まで巻いた後、最初まで巻き戻す)。
586 .TP
587 .B MTREW
588 .\"O Rewind.
589 巻き戻し。
590 .TP
591 .B MTSEEK
592 .\"O Seek to the tape block number specified in
593 .\"O .IR mt_count .
594 .\"O This operation requires either a SCSI-2 drive that supports the
595 .\"O .B LOCATE
596 .\"O command (device-specific address)
597 .\"O or a Tandberg-compatible SCSI-1 drive (Tandberg, Archive
598 .\"O Viper, Wangtek, ...).
599 .\"O The block number should be one that was previously returned by
600 .\"O .BR MTIOCPOS
601 .\"O if device-specific addresses are used.
602 .I mt_count
603 で指定されたテープブロック番号をシークする。
604 この操作が行えるのは、 \s-1LOCATE\s+1 コマンド (デバイス固有のアドレス)
605 をサポートする SCSI-2 ドライブか、あるいは Tandberg
606 互換の SCSI-1 ドライブ (Tandberg, Archive, Viper, Wangtek,…) である。
607 デバイス固有のアドレスが利用されている場合は、ブロック番号は
608 以前に \s-1MTIOCPOS\s+1 によって返されたものにすべきである。
609 .TP
610 .B MTSETBLK
611 .\"O Set the drive's block length to the value specified in
612 .\"O .IR mt_count .
613 .\"O A block length of zero sets the drive to variable block size mode.
614 .I mt_count
615 の値をドライブのブロック長 (block length) としてセットする。
616 ブロック長を 0 にするとドライブは可変長ブロックサイズモードにセッ
617 トされる。
618 .TP
619 .B MTSETDENSITY
620 .\"O Set the tape density to the code in
621 .\"O .IR mt_count .
622 .\"O The density codes supported by a drive can be found from the drive
623 .\"O documentation.
624 テープ密度 (tape density) を
625 .I mt_count
626 で示されるコードに変更する。ドライブでサポートされている密度コード
627 については、ドライブの文書に書いてあるだろう。
628 .TP
629 .B MTSETPART
630 .\"O The active partition is switched to
631 .\"O .IR mt_count .
632 .\"O The partitions are numbered from zero.
633 .\"O This command is not allowed for
634 .\"O a drive unless the partition support is enabled for the drive (see
635 .\"O .B MT_ST_CAN_PARTITIONS
636 .\"O below).
637 アクティブなパーティションを第
638 .I mt_count
639 番目に切り替える。パーティションは 0 から数える。
640 このコマンドは、パーティションのサポートが有効にされた
641 ドライブでなければ使えない (以下の
642 .B MT_ST_CAN_PARTITIONS
643 を見よ)。
644 .TP
645 .B MTUNLOAD
646 .\"O Execute the SCSI unload command (does not eject the tape).
647 SCSI unload コマンドを実行する (テープのイジェクトは行わない)。
648 .TP
649 .B MTUNLOCK
650 .\"O Unlock the tape drive door.
651 テープドライブの扉のロックを解除する。
652 .TP
653 .B MTWEOF
654 .\"O Write
655 .\"O .I mt_count
656 .\"O filemarks.
657 .I mt_count
658 個のファイルマークを書き込む。
659 .TP
660 .B MTWSM
661 .\"O Write
662 .\"O .I mt_count
663 .\"O setmarks.
664 .I mt_count
665 個のセットマークを書き込む。
666 .PP
667 .\"O Magnetic Tape operations for setting of device options (by the superuser):
668 デバイスオプションの設定のための (スーパーユーザによる) 磁気テープ操作:
669 .TP 8
670 .B MTSETDRVBUFFER
671 .\"O Set various drive and driver options according to bits encoded in
672 .\"O .IR mt_count .
673 .\"O These consist of the drive's buffering mode, a set of Boolean driver
674 .\"O options, the buffer write threshold, defaults for the block size and
675 .\"O density, and timeouts (only in kernels 2.1 and later).
676 .\"O A single operation can affect only one item in the list above (the
677 .\"O Booleans counted as one item.)
678 いろいろなドライブとドライバーのオプションを
679 .I mt_count
680 にエンコードされた各ビットに従って設定する。
681 オプションには、ドライブのバッファリングモード、
682 ブール値のドライバオプションの集合、
683 バッファの書き込み閾値 (デフォルトはブロックサイズと密度)、
684 タイムアウト値が含まれる (カーネル 2.1 以降)。
685 一回の操作で変えられるのは、上記のリストのどれか一つだけである
686 (複数のブール値はまとめて一つと勘定される)。
687 .IP
688 .\"O A value having zeros in the high-order 4 bits will be used to set the
689 .\"O drive's buffering mode.
690 .\"O The buffering modes are:
691 高位の4ビットがゼロである値は、
692 ドライブのバッファリングモードの設定に使われる。
693 バッファリングモードは以下の通り:
694 .RS 12
695 .IP 0 4
696 .\"O The drive will not report
697 .\"O .BR GOOD
698 .\"O status on write commands until the data
699 .\"O blocks are actually written to the medium.
700 ドライブはライトコマンドに対し、
701 データブロックが実際に媒体に書き込まれるまで
702 .B GOOD
703 のステータスを返さない。
704 .IP 1
705 .\"O The drive may report
706 .\"O .BR GOOD
707 .\"O status on write commands as soon as all the
708 .\"O data has been transferred to the drive's internal buffer.
709 ドライブはライトコマンドに対し、
710 すべてのデータがドライブの内部バッファに転送されるとすぐに、
711 .B GOOD
712 のステータスを返すことができる。
713 .IP 2
714 .\"O The drive may report
715 .\"O .B GOOD
716 .\"O status on write commands as soon as (a) all
717 .\"O the data has been transferred to the drive's internal buffer, and
718 .\"O (b) all buffered data from different initiators has been successfully
719 .\"O written to the medium.
720 ライトコマンドに対し、以下の 2 つの条件がそろった場合、
721 ドライブはすぐに
722 .B GOOD
723 ステータスを返す事ができる。
724 (a) すべてのデータがドライブの内部バッファに転送された。
725 (b) 別々のイニシエーターから来たバッファデータが、
726 すべて媒体へ問題なく書き込まれた。
727 .RE
728 .IP
729 .\"O To control the write threshold the value in
730 .\"O .I mt_count
731 .\"O must include the constant
732 .\"O .BR MT_ST_WRITE_THRESHOLD
733 .\"O bitwise ORed with a block count in the low 28 bits.
734 .\"O The block count refers to 1024-byte blocks, not the physical block
735 .\"O size on the tape.
736 .\"O The threshold cannot exceed the driver's internal buffer size (see
737 .\"O DESCRIPTION, above).
738 書き込み閾値を制御するには、
739 .I mt_count
740 には、定数 
741 .B MT_ST_WRITE_THRESHOLD
742 とブロックカウントのビット毎の OR をとった値を
743 下位の 28ビットに含まねばならない。
744 このブロックカウントは 1024 バイトブロックを単位としたもので、
745 テープの物理ブロックサイズを単位としたものではない。
746 また、閾値はドライバの内部バッファ (上記の説明参照)
747 のサイズを越える事はできない。
748 .IP
749 .\"O To set and clear the Boolean options
750 .\"O the value in
751 .\"O .I mt_count
752 .\"O must include one of the constants
753 .\"O .BR MT_ST_BOOLEANS ,
754 .\"O .BR MT_ST_SETBOOLEANS ,
755 .\"O .BR MT_ST_CLEARBOOLEANS ,
756 .\"O or
757 .\"O .BR MT_ST_DEFBOOLEANS
758 .\"O bitwise OR'ed with
759 .\"O whatever combination of the following options is desired.
760 .\"O Using
761 .\"O .BR MT_ST_BOOLEANS
762 .\"O the options can be set to the values
763 .\"O defined in the corresponding bits.
764 .\"O With
765 .\"O .BR MT_ST_SETBOOLEANS
766 .\"O the options can be selectively set and with
767 .\"O .BR MT_ST_DEFBOOLEANS
768 .\"O selectively cleared.
769 ブール値のフラグを設定・解除するには、
770 .I mt_count
771 の値は
772 .BR MT_ST_BOOLEANS ,
773 .BR MT_ST_SETBOOLEANS ,
774 .BR MT_ST_CLEARBOOLEANS ,
775 .BR MT_ST_DEFBOOLEANS
776 のいずれか一つの値に、以下のオプションの任意の組み合わせに対して
777 ビット毎の OR を取ったものを指定する。
778 .BR MT_ST_BOOLEANS を用いると、
779 オプションを対応するビットに対して定義されている値に設定できる。
780 .BR MT_ST_SETBOOLEANS を用いると、
781 オプションは選択的に設定され、
782 .BR MT_ST_DEFBOOLEANS を用いると
783 選択的に解除される。
784 .IP ""
785 .\"O The default options for a tape device are set with
786 .\"O .BR MT_ST_DEFBOOLEANS .
787 .\"O A nonactive tape device (e.g., device with
788 .\"O minor 32 or 160) is activated when the default options for it are
789 .\"O defined the first time.
790 .\"O An activated device inherits from the device
791 .\"O activated at start-up the options not set explicitly.
792 テープデバイスのデフォルトのオプションは
793 .B MT_ST_DEFBOOLEANS
794 によって設定される。
795 アクティブでないテープデバイス (例: マイナー番号 が 32 や 160 のデバイス)
796 は、それらに対するデフォルトのオプションが最初に定義されたときに
797 アクティブになる。アクティブにされたデバイスは、
798 起動時にアクティブにされたデバイスから、
799 明示的に指定されなかったオプションを継承する。
800 .IP ""
801 .\"O The Boolean options are:
802 ブール値のオプションは以下の通り:
803 .RS
804 .TP
805 .\"O .BR MT_ST_BUFFER_WRITES " (Default: true)"
806 .BR MT_ST_BUFFER_WRITES " (デフォルト: 真)"
807 .\"O Buffer all write operations in fixed-block mode.
808 .\"O If this option is false and the drive uses a fixed block size, then
809 .\"O all write operations must be for a multiple of the block size.
810 .\"O This option must be set false to write reliable multivolume archives.
811 固定長ブロックモードにおけるすべての書き込み操作をバッファリングする。
812 このオプションが偽であり、かつドライブが固定長ブロックサイズの時は、
813 すべての書き込み操作はブロックサイズの倍数の大きさで行わなければならない。
814 信頼性のあるマルチボリュームアーカイブを書き込むためには、
815 このオプションは偽に設定されていなければならない。
816 .TP
817 .\"O .BR MT_ST_ASYNC_WRITES " (Default: true)"
818 .BR MT_ST_ASYNC_WRITES " (デフォルト: 真)"
819 .\"O When this option is true, write operations return immediately without
820 .\"O waiting for the data to be transferred to the drive if the data fits
821 .\"O into the driver's buffer.
822 .\"O The write threshold determines how full the buffer must be before a
823 .\"O new SCSI write command is issued.
824 .\"O Any errors reported by the drive will be held until the next
825 .\"O operation.
826 .\"O This option must be set false to write reliable multivolume archives.
827 このオプションが真の時には、データがドライバのバッファに収まる時には
828 データがドライブに転送されるのを待たずに、すぐに書き込み操作が返って来る。
829 バッファがどのくらい空いたら次の SCSI write コマンドを発行できるかは、
830 書き込み閾値によって決まる。
831 ドライブが返すすべてのエラーは、次の操作まで保存される。
832 信頼性のあるマルチボリュームアーカイブを書き込むためには、
833 このオプションは偽に設定されていなければならない。
834 .TP
835 .\"O .BR MT_ST_READ_AHEAD " (Default: true)"
836 .BR MT_ST_READ_AHEAD " (デフォルト: 真)"
837 .\"O This option causes the driver to provide read buffering and
838 .\"O read-ahead in fixed-block mode.
839 .\"O If this option is false and the drive uses a fixed block size, then
840 .\"O all read operations must be for a multiple of the block size.
841 このオプションを指定すると、
842 ドライバは固定長ブロックモードで読み込みバッファリングと先読みをするようになる。
843 このオプションが偽であり、かつドライブが固定長ブロックサイズの時は、
844 すべての読み込み操作はブロックサイズの倍数の大きさで行わなければならない。
845 .TP
846 .\"O .BR MT_ST_TWO_FM " (Default: false)"
847 .BR MT_ST_TWO_FM " (デフォルト: 偽)"
848 .\"O This option modifies the driver behavior when a file is closed.
849 .\"O The normal action is to write a single filemark.
850 .\"O If the option is true the driver will write two filemarks and
851 .\"O backspace over the second one.
852 このオプションはファイルがクローズされた時のドライバーの振舞いを変更する。
853 一つのファイルマークを書き込むのが通常の動作である。
854 このオプションが真の時には、
855 ドライバーは 2 つのファイルマークを書き込んで、
856 2 つめのファイルマークのところに戻る。
857 .IP
858 .\"O Note:
859 .\"O This option should not be set true for QIC tape drives since they are
860 .\"O unable to overwrite a filemark.
861 .\"O These drives detect the end of recorded data by testing for blank tape
862 .\"O rather than two consecutive filemarks.
863 .\"O Most other current drives also
864 .\"O detect the end of recorded data and using two filemarks is usually
865 .\"O necessary only when interchanging tapes with some other systems.
866 注意:
867 QICテープドライブはファイルマークに上書きすることができないので、
868 このオプションを真にしてはならない。
869 これらのドライブは記録データの末尾の検知に、
870 ファイルマークが 2つ続けてあるかではなく、
871 ブランクテープかどうかのテストを用いる。
872 現在の他のほとんどのドライブも、記録データの末尾を検知する。
873 2 つのファイルマークが必要になるのは、
874 他のシステムとテープをやりとりする場合である。
875 .TP
876 .\"O .BR MT_ST_DEBUGGING " (Default: false)"
877 .BR MT_ST_DEBUGGING " (デフォルト: 偽)"
878 .\"O This option turns on various debugging messages from the driver
879 .\"O (effective only if the driver was compiled with
880 .\"O .B DEBUG
881 .\"O defined nonzero).
882 このオプションを真にすると、
883 ドライバはいろいろなデバッグ用メッセージを出すようになる
884 .RB ( DEBUG
885 を非ゼロに定義してドライバをコンパイルしている時のみ有効)。
886 .TP
887 .\"O .BR MT_ST_FAST_EOM " (Default: false)"
888 .BR MT_ST_FAST_EOM " (デフォルト: 偽)"
889 .\"O This option causes the
890 .\"O .B MTEOM
891 .\"O operation to be sent directly to the
892 .\"O drive, potentially speeding up the operation but causing the driver to
893 .\"O lose track of the current file number normally returned by the
894 .\"O .B MTIOCGET
895 .\"O request.
896 .\"O If
897 .\"O .B MT_ST_FAST_EOM
898 .\"O is false the driver will respond to an
899 .\"O .B MTEOM
900 .\"O request by forward spacing over files.
901 このオプションを真にすると、
902 .B MTEOM
903 操作が直接ドライブに送られるようになる。
904 操作が早くなるはずだが、
905 ドライバが現在のファイル番号を見失うことになる
906 (これは通常なら
907 .B MTIOCGET
908 リクエストによって返される)。
909 .B MT_ST_FAST_EOM
910 が偽の時には、ドライバは
911 .B MTEOM
912 リクエストに応えるとき、前方にファイルを一つ一つ進めていく。
913 .TP
914 .\"O .BR MT_ST_AUTO_LOCK " (Default: false)"
915 .BR MT_ST_AUTO_LOCK " (デフォルト: 偽)"
916 .\"O When this option is true, the drive door is locked when the device is
917 .\"O opened and unlocked when it is closed.
918 このオプションが真の時には、
919 デバイスがオープンされるとドライブの扉がロックされ、
920 クローズされるとアンロックされる。
921 .TP
922 .\"O .BR MT_ST_DEF_WRITES " (Default: false)"
923 .BR MT_ST_DEF_WRITES " (デフォルト: 偽)"
924 .\"O The tape options (block size, mode, compression, etc.) may change
925 .\"O when changing from one device linked to a drive to another device
926 .\"O linked to the same drive depending on how the devices are
927 .\"O defined.
928 .\"O This option defines when the changes are enforced by the
929 .\"O driver using SCSI-commands and when the drives auto-detection
930 .\"O capabilities are relied upon.
931 .\"O If this option is false, the driver
932 .\"O sends the SCSI-commands immediately when the device is changed.
933 .\"O If the
934 .\"O option is true, the SCSI-commands are not sent until a write is
935 .\"O requested.
936 .\"O In this case the drive firmware is allowed to detect the
937 .\"O tape structure when reading and the SCSI-commands are used only to
938 .\"O make sure that a tape is written according to the correct specification.
939 テープオプション (ブロックサイズ、モード、圧縮など)
940 があるドライブにリンクされたデバイスで変更されると、
941 その同じドライブにリンクされた他のデバイスでも変更されることがある
942 (そのデバイスの定義による)。このオプションは、
943 ドライバによる変更をいつ SCSI コマンドによって反映させるかと、
944 ドライブの自動検知機能がいつ信頼して良いのかを定義する。
945 このオプションを偽にしておくと、
946 デバイスの変更があるとドライバはすぐに SCSI コマンドを送る。
947 真にしておくと、 SCSI コマンドは書き込みが要求されるまで送られない。
948 後者の場合は、読み込みの際にドライブのファームウェアによって
949 テープ構造の検知が行える。また SCSI コマンドは、
950 テープが正しい指定に沿って書き込まれているかどうかの
951 確認のためだけに用いられる。
952 .TP
953 .\"O .BR MT_ST_CAN_BSR " (Default: false)"
954 .BR MT_ST_CAN_BSR " (デフォルト: 偽)"
955 .\"O When read-ahead is used, the tape must sometimes be spaced backward to the
956 .\"O correct position when the device is closed and the SCSI command to
957 .\"O space backward over records is used for this purpose.
958 .\"O Some older
959 .\"O drives can't process this command reliably and this option can be used
960 .\"O to instruct the driver not to use the command.
961 .\"O The end result is that,
962 .\"O with read-ahead and fixed-block mode, the tape may not be correctly
963 .\"O positioned within a file when the device is closed.
964 .\"O With 2.6 kernel, the
965 .\"O default is true for drives supporting SCSI-3.
966 先読みを使うと、テープをクローズするときに、
967 場合によってはテープを正しい位置に逆戻ししなければならないことがある。
968 これには、レコードを越えて逆戻しする SCSI コマンドが用いられる。
969 古いドライブでは、このコマンド処理の信頼性が低いことがあるが、
970 このオプションを指定すると、
971 ドライバにこのコマンドの利用を禁止することができる。
972 先読みと固定長ブロックモードを用いていると、最終的な結果として、
973 デバイスのクローズ時にテープが正しい位置にならないことがある。
974 .\"nakano そうか?
975 2.6 カーネルでは、SCSI-3 をサポートしているドライブに対して、
976 この値のデフォルトは真となる。
977 .TP
978 .\"O .BR MT_ST_NO_BLKLIMS " (Default: false)"
979 .BR MT_ST_NO_BLKLIMS " (デフォルト: 偽)"
980 .\"O Some drives don't accept the
981 .\"O .B "READ BLOCK LIMITS"
982 .\"O SCSI command.
983 .\"O If this is used, the driver does not use the command.
984 .\"O The drawback is
985 .\"O that the driver can't check before sending commands if the selected
986 .\"O block size is acceptable to the drive.
987 ドライブによっては
988 .B READ BLOCK LIMITS SCSI
989 コマンドを受けつけないことがある。
990 このオプションを用いると、ドライバはこのコマンドを用いない。
991 欠点は、指定したブロックサイズがドライブに受理されてしまうと、
992 ドライバのコマンド送信前チェックができなくなる点である。
993 .TP
994 .\"O .BR MT_ST_CAN_PARTITIONS " (Default: false)"
995 .BR MT_ST_CAN_PARTITIONS " (デフォルト: 偽)"
996 .\"O This option enables support for several partitions within a
997 .\"O tape.
998 .\"O The option applies to all devices linked to a drive.
999 このオプションは、一つのテープに複数パーティションを置くことを
1000 サポートするかどうかを決める。
1001 このオプションはドライブにリンクされた全てのデバイスに適用される。
1002 .TP
1003 .\"O .MT_ST_SCSI2LOGICAL " (Default: false)"
1004 .TP MT_ST_SCSI2LOGICAL " (デフォルト: 偽)"
1005 .\"O This option instructs the driver to use the logical block addresses
1006 .\"O defined in the SCSI-2 standard when performing the seek and tell
1007 .\"O operations (both with
1008 .\"O .B MTSEEK
1009 .\"O and
1010 .\"O .B MTIOCPOS
1011 .\"O commands and when changing tape
1012 .\"O partition).
1013 .\"O Otherwise the device-specific addresses are used.
1014 .\"O It is highly advisable to set this option if the drive supports the
1015 .\"O logical addresses because they count also filemarks.
1016 .\"O There are some
1017 .\"O drives that only support the logical block addresses.
1018 このオプションは、
1019 seek および tell 操作 (両者とも
1020 .BR MTSEEK ・ MTIOCPOS
1021 コマンドを伴い、テープ位置を変更するとき) の際に、
1022 SCSI-2 の標準で定義されている論理ブロックアドレスを用いるかどうかを
1023 ドライバに伝える。
1024 .\"nakano both with の部分怪しい。
1025 偽だとデバイス固有のアドレスが用いられる。
1026 ドライブが論理アドレスをサポートしているときは、
1027 このオプションをセットすることを強く勧める。
1028 このモードではファイルマークもカウントするからである。
1029 論理ブロックアドレスしかサポートしないドライブもいくつか存在している。
1030 .TP
1031 .\"O .BR MT_ST_SYSV " (Default: false)"
1032 .BR MT_ST_SYSV " (デフォルト: 偽)"
1033 .\"O When this option is enabled, the tape devices use the SystemV
1034 .\"O semantics.
1035 .\"O Otherwise the BSD semantics are used.
1036 .\"O The most important
1037 .\"O difference between the semantics is what happens when a device used
1038 .\"O for reading is closed: in System V semantics the tape is spaced forward
1039 .\"O past the next filemark if this has not happened while using the
1040 .\"O device.
1041 .\"O In BSD semantics the tape position is not changed.
1042 このオプションが真になっていると、テープデバイスは
1043 SystemV のルールを用いる。偽だと BSD のルールを用いる。
1044 .\"nakano: semantics → ルール はちと違うか?
1045 これらのルール間の最も大きな違いは、読み込みを行っていた
1046 デバイスがクローズされたときの振舞いである。
1047 System V のルールでは、テープは次のファイルマークを越えて移動する
1048 (デバイスの利用時にこれが行われなかった場合)。
1049 BSD のルールではテープ位置は変更されない。
1050 .TP
1051 .\"O .BR MT_NO_WAIT " (Default: false)"
1052 .BR MT_NO_WAIT " (デフォルト: 偽)"
1053 .\"O Enables immediate mode (i.e., don't wait for the command to finish) for some
1054 .\"O commands (e.g., rewind).
1055 即時モード (immediate mode; コマンドの終了を待たない)
1056 を、ある種のコマンド (rewind など) に対して有効にする。
1057 .PP
1058 .\"O An example:
1059 例:
1060 .in +4n
1061 .nf
1062
1063 struct mtop mt_cmd;
1064 mt_cmd.mt_op = MTSETDRVBUFFER;
1065 mt_cmd.mt_count = MT_ST_BOOLEANS |
1066         MT_ST_BUFFER_WRITES | MT_ST_ASYNC_WRITES;
1067 ioctl(fd, MTIOCTOP, mt_cmd);
1068 .fi
1069 .in
1070 .RE
1071 .IP ""
1072 .\"O The default block size for a device can be set with
1073 .\"O .B MT_ST_DEF_BLKSIZE
1074 .\"O and the default density code can be set with
1075 .\"O .BR MT_ST_DEFDENSITY .
1076 .\"O The values for the parameters are or'ed
1077 .\"O with the operation code.
1078 デバイスのデフォルトのブロックサイズは
1079 .B MT_ST_DEF_BLKSIZE
1080 によって設定でき、デフォルトの密度コードは
1081 .B MT_ST_DEFDENSITY
1082 によって設定できる。
1083 これらのパラメータの値は操作コードと OR して与える。
1084 .IP ""
1085 .\"O With kernels 2.1.x and later, the timeout values can be set with the
1086 .\"O subcommand
1087 .\"O .B MT_ST_SET_TIMEOUT
1088 .\"O ORed with the timeout in seconds.
1089 .\"O The long timeout (used for rewinds and other commands
1090 .\"O that may take a long time) can be set with
1091 .\"O .BR MT_ST_SET_LONG_TIMEOUT .
1092 .\"O The kernel defaults are very long to
1093 .\"O make sure that a successful command is not timed out with any
1094 .\"O drive.
1095 .\"O Because of this the driver may seem stuck even if it is only
1096 .\"O waiting for the timeout.
1097 .\"O These commands can be used to set more
1098 .\"O practical values for a specific drive.
1099 .\"O The timeouts set for one device
1100 .\"O apply for all devices linked to the same drive.
1101 2.1.x 以降のカーネルでは、タイムアウト値の設定は、
1102 サブコマンド
1103 .B MT_ST_SET_TIMEOUT
1104 に秒単位のタイムアウト値を
1105 OR して与えることによって行える。 long タイムアウト
1106 (巻き戻しなど、長い時間がかかるコマンドに対して用いられる) は
1107 .B MT_ST_SET_LONG_TIMEOUT
1108 で設定できる。
1109 カーネルのデフォルトは非常に長く、どのドライブでも
1110 成功しているコマンドが決してタイムアウトしないようになっている。
1111 したがって、ドライバはタイムアウトを待っているだけなのに、
1112 刺さった (stuck した) ように見えることがある。これらのコマンドを使えば、
1113 特定のドライブに対してもう少し実際的な値に設定することができる。
1114 一つのデバイスに設定したタイムアウト値は、
1115 それと同じドライブにリンクした全てのデバイスに適用される。
1116 .IP ""
1117 .\"O Starting from kernels 2.4.19 and 2.5.43, the driver supports a status
1118 .\"O bit which indicates whether the drive requests cleaning.
1119 .\"O The method used by the
1120 .\"O drive to return cleaning information is set using the
1121 .\"O .B MT_ST_SEL_CLN
1122 .\"O .B subcommand.
1123 .\"O If the value is zero, the cleaning
1124 .\"O bit is always zero.
1125 .\"O If the value is one, the TapeAlert data defined
1126 .\"O in the SCSI-3 standard is used (not yet implemented).
1127 .\"O Values 2-17 are
1128 .\"O reserved.
1129 .\"O If the lowest eight bits are >= 18, bits from the extended
1130 .\"O sense data are used.
1131 .\"O The bits 9-16 specify a mask to select the bits
1132 .\"O to look at and the bits 17-23 specify the bit pattern to look for.
1133 .\"O If the bit pattern is zero, one or more bits under the mask indicate
1134 .\"O the cleaning request.
1135 .\"O If the pattern is nonzero, the pattern must match
1136 .\"O the masked sense data byte.
1137 2.4.19 および 2.5.43 以降のカーネルでは、
1138 このドライバはドライブのクリーニングが必要かどうかを示す
1139 状態ビットをサポートする。
1140 ドライブがクリーニング情報を返させるかどうかは、
1141 .B MT_ST_SEL_CLN
1142 サブコマンドによって設定できる。
1143 この値が 0 だと、クリーニングビットは常に 0 となる。
1144 値を 1 にすると、SCSI-3 標準で規定されている
1145 TapeAlert データが用いられる (まだ実装されていない)
1146 値としては 2 から 17 が予約されている。
1147 低位側の 8 ビットが 18 以上だと、拡張状態データ (extended sense data)
1148 が用いられる。第 9-16 ビットは注目すべきビットを選択するためのマスクを指定し、
1149 第 17-23 ビットは探すべきビットパターンを指定する。
1150 このビットパターンが 0 のときは、
1151 マスク下のビット (群) がクリーニング要求を示す。パターンが 0 でなければ、
1152 このパターンがマスク後の状態データバイトにマッチしなければならない。
1153 .\"O .SS "MTIOCGET \(em Get status"
1154 .SS "MTIOCGET \(em ステータスの取得"
1155 .PP
1156 .\"O This request takes an argument of type
1157 .\"O .IR "(struct mtget *)" .
1158 このリクエストは
1159 .IR "(struct mtget *)"
1160 という型の引数をとる。
1161 .PP
1162 .in +4n
1163 .nf
1164 /* structure for MTIOCGET \- mag tape get status command */
1165 struct mtget {
1166     long     mt_type;
1167     long     mt_resid;
1168     /* the following registers are device dependent */
1169     long     mt_dsreg;
1170     long     mt_gstat;
1171     long     mt_erreg;
1172     /* The next two fields are not always used */
1173     daddr_t  mt_fileno;
1174     daddr_t  mt_blkno;
1175 };
1176 .fi
1177 .in
1178 .IP \fImt_type\fP 11
1179 .\"O The header file defines many values for
1180 .\"O .IR mt_type ,
1181 .\"O but the current driver reports only the generic types
1182 .\"O .B MT_ISSCSI1
1183 .\"O (Generic SCSI-1 tape)
1184 .\"O and
1185 .\"O .B MT_ISSCSI2
1186 .\"O (Generic SCSI-2 tape).
1187 ヘッダファイル中には多くの
1188 .I mt_type
1189 の値が定義されているが、現行のドライバは汎用のタイプである
1190 .B MT_ISSCSI1
1191 (汎用 SCSI-1 テープ) および
1192 .B MT_ISSCSI2
1193 (汎用 SCSI-2 テープ) のみを返す。
1194 .IP \fImt_resid\fP
1195 .\"O contains the current tape partition number.
1196 現在のテープ位置番号。
1197 .IP \fImt_dsreg\fP
1198 .\"O reports the drive's current settings for block size (in the low 24
1199 .\"O bits) and density (in the high 8 bits).
1200 .\"O These fields are defined by
1201 .\"O .BR MT_ST_BLKSIZE_SHIFT ,
1202 .\"O .BR MT_ST_BLKSIZE_MASK ,
1203 .\"O .BR MT_ST_DENSITY_SHIFT ,
1204 .\"O and
1205 .\"O .BR MT_ST_DENSITY_MASK .
1206 ドライブのブロックサイズと密度の現在の設定を報告する
1207 (下位 24 ビットがブロックサイズ、上位 8 ビットが密度)。
1208 これらのフィールドは、
1209 .BR MT_ST_BLKSIZE_SHIFT ,
1210 .BR MT_ST_BLKSIZE_MASK ,
1211 .BR MT_ST_DENSITY_SHIFT ,
1212 .BR MT_ST_DENSITY_MASK
1213 で定義されている。
1214 .IP \fImt_gstat\fP
1215 .\"O reports generic (device independent) status information.
1216 .\"O The header file defines macros for testing these status bits:
1217 汎用の (デバイスに依存しない) ステータスを報告する。
1218 これらのステータスビットをテストするためのマクロが
1219 ヘッダファイルで定義されている。
1220 .RS
1221 .HP 4
1222 \fBGMT_EOF\fP(\fIx\fP):
1223 .\"O The tape is positioned just after a filemark
1224 .\"O (always false after an
1225 .\"O .B MTSEEK
1226 .\"O operation).
1227 テープはファイルマークの直後に位置している。
1228 .RB ( MTSEEK
1229 操作の後では常に偽)
1230 .HP
1231 \fBGMT_BOT\fP(\fIx\fP):
1232 .\"O The tape is positioned at the beginning of the first file (always false
1233 .\"O after an
1234 .\"O .B MTSEEK
1235 .\"O operation).
1236 テープは最初のファイルの先頭に位置している。
1237 .RB ( MTSEEK
1238 操作の後では常に偽)
1239 .HP
1240 \fBGMT_EOT\fP(\fIx\fP):
1241 .\"O A tape operation has reached the physical End Of Tape.
1242 テープ操作はテープの物理的な終点に達した。
1243 .HP
1244 \s-1GMT_SM(\s+1\fIx\fP\s-1)\s+1:
1245 .\"O The tape is currently positioned at a setmark
1246 .\"O (always false after an
1247 .\"O .B MTSEEK
1248 .\"O operation).
1249 テープは現在セットマークに位置している。
1250 .RB ( MTSEEK
1251 操作の後では常に偽)
1252 .HP
1253 \fBGMT_EOD\fP(\fIx\fP):
1254 .\"O The tape is positioned at the end of recorded data.
1255 テープは記録データの末尾に位置している。
1256 .HP
1257 \fBGMT_WR_PROT\fP(\fIx\fP):
1258 .\"O The drive is write-protected.
1259 .\"O For some drives this can also mean that the drive does not support
1260 .\"O writing on the current medium type.
1261 ドライブはライトプロテクトされている。
1262 これはドライブによっては、
1263 ドライブが現在のメディアタイプへの書き込みを
1264 サポートしていない事を意味する場合もある。
1265 .HP
1266 \fBGMT_ONLINE\fP(\fIx\fP):
1267 .\"O The last
1268 .\"O .BR open (2)
1269 .\"O found the drive with a tape in place and ready for operation.
1270 もっとも最近の
1271 .BR open (2)
1272 が、テープが入っていて操作の準備ができているドライブを検知した。
1273 .HP
1274 \fBGMT_D_6250\fP(\fIx\fP), \fBGMT_D_1600\fP(\fIx\fP), \fBGMT_D_800\fP(\fIx\fP):
1275 .\"O This \(lqgeneric\(rq status information reports the current
1276 .\"O density setting for 9-track \(12" tape drives only.
1277 この「汎用」のステータス情報は、
1278 9-トラック \(12" テープドライブの場合にのみ、
1279 現在の密度の設定を報告する。
1280 .HP
1281 \fBGMT_DR_OPEN\fP(\fIx\fP):
1282 .\"O The drive does not have a tape in place.
1283 ドライブにテープが入っていない。
1284 .HP
1285 \fBGMT_IM_REP_EN\fP(\fIx\fP):
1286 .\"O Immediate report mode.
1287 .\"O This bit is set if there are no guarantees that
1288 .\"O the data has been physically written to the tape when the write call
1289 .\"O returns.
1290 .\"O It is set zero only when the driver does not buffer data and
1291 .\"O the drive is set not to buffer data.
1292 即時報告モード。 write コールが戻ったとき、
1293 テープに対して物理的な書き込みが行われたかどうかを保証できない場合に、
1294 このビットがセットされる。ドライバがデータをバッファリングせず、
1295 ドライブもデータをバッファリングしない場合に限って、
1296 この値は 0 にセットされる。
1297 .HP
1298 \fBGMT_CLN\fP(\fIx\fP):
1299 .\"O The drive has requested cleaning.
1300 .\"O Implemented in kernels since 2.4.19 and 2.5.43.
1301 ドライブがクリーニングを要求している。
1302 カーネル 2.4.19 および 2.5.43 以降で実装された。
1303 .RE
1304 .IP \fImt_erreg\fP
1305 .\"O The only field defined in
1306 .\"O .I mt_erreg
1307 .\"O is the recovered error count in the low 16 bits (as defined by
1308 .\"O .BR MT_ST_SOFTERR_SHIFT
1309 .\"O and
1310 .\"O .BR MT_ST_SOFTERR_MASK .
1311 .\"O Due to inconsistencies in the way drives report recovered errors, this
1312 .\"O count is often not maintained (most drives do not by default report
1313 .\"O soft errors but this can be changed with a SCSI MODE SELECT command).
1314 .I mt_erreg
1315 で定義されているフィールドは一つだけで、
1316 下位の 16 ビットがエラーをリカバーした回数である
1317 .RB ( MT_ST_SOFTERR_SHIFT
1318
1319 .B MT_ST_SOFTERR_MASK
1320 で定義されている)。
1321 ドライブの報告するエラーリカバー数と矛盾することがあるので、
1322 この数はほとんどの場合維持されない
1323 (ほとんどのドライブでは、デフォルトではソフトエラーを報告しない。
1324 しかしこれは SCSI MODE SELECT コマンドによって変更できる)。
1325 .IP \fImt_fileno\fP
1326 .\"O reports the current file number (zero-based).
1327 .\"O This value is set to \-1 when the file number is unknown (e.g., after
1328 .\"O .BR MTBSS
1329 .\"O or
1330 .\"O .BR MTSEEK ).
1331 (ゼロから数えた) 現在のファイル番号を報告する。
1332 ファイル番号がわからない時 (例えば
1333 .B MTBSS
1334
1335 .B MTSEEK
1336 の後など) には \-1 にセットされる。
1337 .IP \fImt_blkno\fP
1338 .\"O reports the block number (zero-based) within the current file.
1339 .\"O This value is set to \-1 when the block number is unknown (e.g., after
1340 .\"O .BR MTBSF ,
1341 .\"O .BR MTBSS ,
1342 .\"O or
1343 .\"O .BR MTSEEK ).
1344 現在のファイル中の(ゼロから数えた)ブロック番号を報告する。
1345 ブロック番号がわからない時 (例えば
1346 .BR MTBSF ,
1347 .BR MTBSS ,
1348 .BR MTSEEK
1349 の後など) には \-1 にセットされる。
1350 .PD
1351 .\"O .SS "MTIOCPOS \(em Get tape position"
1352 .SS "MTIOCPOS \(em テープ位置の取得"
1353 .PP
1354 .\"O This request takes an argument of type
1355 .\"O .I "(struct mtpos *)"
1356 .\"O and reports the drive's notion of the current tape block number,
1357 .\"O which is not the same as
1358 .\"O .I mt_blkno
1359 .\"O returned by
1360 .\"O .BR MTIOCGET .
1361 .\"O This drive must be a SCSI-2 drive that supports the
1362 .\"O .B "READ POSITION"
1363 .\"O command (device-specific address)
1364 .\"O or a Tandberg-compatible SCSI-1 drive (Tandberg, Archive
1365 .\"O Viper, Wangtek, ... ).
1366 このリクエストは
1367 .I "(struct mtpos *)"
1368 型の引数をとり、ドライブが保持している現在のテープブロック番号を報告する。
1369 これは、
1370 .B MTIOCGET
1371 により返される
1372 .I mt_blkno
1373 と同じではない。
1374 ドライブは
1375 .B "READ POSITION"
1376 コマンド (デバイス固有アドレス)
1377 をサポートする SCSI-2ドライブか、
1378 Tandberg 互換の SCSI-1 ドライブ
1379 (Tandberg, Archive, Viper, Wangtek, ... ) でなければならない。
1380 .PP
1381 .in +4n
1382 .nf
1383 /* structure for MTIOCPOS \- mag tape get position command */
1384 struct mtpos {
1385     long mt_blkno;    /* current block number */
1386 };
1387 .fi
1388 .in
1389 .\"O .SH "RETURN VALUE"
1390 .SH 返り値
1391 .TP 14
1392 .TP
1393 .B EACCES
1394 .\"O An attempt was made to write or erase a write-protected tape.
1395 .\"O (This error is not detected during
1396 .\"O .BR open (2).)
1397 書き込み保護されているテープに書き込みまたは消去を行おうとした。
1398 (このエラーは
1399 .BR open (2)
1400 中には検知されない。)
1401 .TP
1402 .B EBUSY
1403 .\"O The device is already in use or the driver was unable to allocate a
1404 .\"O buffer.
1405 デバイスがすでに使われているか、
1406 ドライバがバッファを割当てられなかった。
1407 .TP
1408 .B EFAULT
1409 .\"O The command parameters point to memory not belonging to the calling
1410 .\"O process.
1411 コマンドの引数が、
1412 呼びだしプロセスに属していないメモリ位置を指している。
1413 .TP
1414 .B EINVAL
1415 .\"O An
1416 .\"O .BR ioctl (2)
1417 .\"O had an invalid argument, or a requested block size was invalid.
1418 .BR ioctl (2)
1419 の引数が不正であるか、要求したブロックサイズが不正。
1420 .TP
1421 .B EIO 14
1422 .\"O The requested operation could not be completed.
1423 要求された操作が最後まで行えなかった。
1424 .TP
1425 .B ENOMEM
1426 .\"O The byte count in
1427 .\"O .BR read (2)
1428 .\"O is smaller than the next physical block on the tape.
1429 .\"O (Before 2.2.18 and 2.4.0-test6 the extra bytes have been
1430 .\"O silently ignored.)
1431 .BR read (2)
1432 のバイト数が、テープにある次の物理ブロックより小さい
1433 (2.2.18 および 2.4.0-test6 以前では、黙って余分のバイトを無視していた)。
1434 .TP
1435 .B ENOSPC
1436 .\"O A write operation could not be completed because the tape reached
1437 .\"O end-of-medium.
1438 メディアの終点に達したため、書き込み操作が完了しなかった。
1439 .TP
1440 .B ENOSYS
1441 .\"O Unknown
1442 .\"O .BR ioctl (2).
1443 不明な
1444 .BR ioctl (2)。
1445 .TP
1446 .B ENXIO
1447 .\"O During opening, the tape device does not exist.
1448 オープンする時にテープデバイスが存在しなかった。
1449 .TP
1450 .B EOVERFLOW
1451 .\"O An attempt was made to read or write a variable-length block that is
1452 .\"O larger than the driver's internal buffer.
1453 ドライバの内部バッファより大きいサイズの可変長ブロックを
1454 読み書きしようとした。
1455 .TP
1456 .B EROFS
1457 .\"O Open is attempted with
1458 .\"O .B O_WRONLY
1459 .\"O or
1460 .\"O .B O_RDWR
1461 .\"O when the tape in the drive is write-protected.
1462 ドライブに入っているテープがライトプロテクトされている場合に、
1463 .B O_WRONLY
1464 または
1465 .B O_RDWR
1466 で open を行おうとした。
1467 .\"O .SH FILES
1468 .SH ファイル
1469 .TP 12
1470 .\"O .I /dev/st*
1471 .\"O the auto-rewind SCSI tape devices
1472 .I /dev/st*
1473 自動巻き戻しの SCSI テープデバイス。
1474 .TP 12
1475 .\"O .I /dev/nst*
1476 .\"O the nonrewind SCSI tape devices
1477 .I /dev/nst*
1478 巻き戻しをしない SCSI テープデバイス。
1479 .\"O .\" .SH AUTHOR
1480 .\" .SH 著者
1481 .\"O .\" The driver has been written by Kai M\(:akisara (Kai.Makisara@metla.fi)
1482 .\"O .\" starting from a driver written by Dwayne Forsyth.
1483 .\"O .\" Several other
1484 .\"O .\" people have also contributed to the driver.
1485 .\" このドライバは
1486 .\" Dwayne Forsyth の書いたドライバをもとにして
1487 .\" Kai M\(:akisara (Kai.Makisara@metla.fi) が書いた。
1488 .\" 他にも何人かの人々がこのドライバに貢献してきた。
1489 .\"O .SH NOTES
1490 .SH 注意
1491 .IP 1. 4
1492 .\"O When exchanging data between systems, both systems have to agree on
1493 .\"O the physical tape block size.
1494 .\"O The parameters of a drive after startup
1495 .\"O are often not the ones most operating systems use with these
1496 .\"O devices.
1497 .\"O Most systems use drives in variable-block mode if the drive
1498 .\"O supports that mode.
1499 .\"O This applies to most modern drives, including
1500 .\"O DATs, 8mm helical scan drives, DLTs, etc.
1501 .\"O It may be advisable to use
1502 .\"O these drives in variable-block mode also in Linux (i.e., use
1503 .\"O .B MTSETBLK
1504 .\"O or
1505 .\"O .B MTSETDEFBLK
1506 .\"O at system startup to set the mode), at least when
1507 .\"O exchanging data with a foreign system.
1508 .\"O The drawback of
1509 .\"O this is that a fairly large tape block size has to be used to get
1510 .\"O acceptable data transfer rates on the SCSI bus.
1511 異なるシステムでデータを相互にやりとりする場合、
1512 両方のシステムで物理的なテープブロックサイズを一致させる必要がある。
1513 起動直後のドライブのパラメータは、大多数の OS がそのデバイスに対して
1514 用いている値と異なっていることもよくある。多くのシステムは、
1515 ドライブが対応していれば可変長ブロックモードを用いる。 DAT、
1516 8mm ヘリカルスキャンドライブ、 DLT などの最近のドライブの
1517 ほとんどは可変長ブロックモードに対応しているから。
1518 これらのドライブは (少なくとも他のシステムとのデータ交換が
1519 ある場合は)、 Linux でも可変長ブロックモードで使うほうが
1520 良いかもしれない (つまりシステムの起動時のモード設定に
1521 .B MTSETBLK
1522 または
1523 .B MTSETDEFBLK
1524 を用いる)。
1525 欠点としては、比較的大きなテープブロックサイズを用いなければ、
1526 SCSI バス上で満足のいく転送速度が得られないことである。
1527 .IP 2.
1528 .\"O Many programs (e.g.,
1529 .\"O .BR tar (1))
1530 .\"O allow the user to specify the blocking
1531 .\"O factor on the command line.
1532 .\"O Note that this determines the physical block
1533 .\"O size on tape only in variable-block mode.
1534 多くのプログラム
1535 .RB ( tar (1)
1536 など) では、
1537 コマンドラインからユーザがブロック関連の値を指定できる。
1538 この値によってテープ上の物理的なブロックサイズを決定できるのは、
1539 可変長ブロックモードに限られることに注意。
1540 .IP 3.
1541 .\"O In order to use SCSI tape drives, the basic SCSI driver,
1542 .\"O a SCSI-adapter driver and the SCSI tape driver must be either
1543 .\"O configured into the kernel or loaded as modules.
1544 .\"O If the SCSI-tape
1545 .\"O driver is not present, the drive is recognized but the tape support
1546 .\"O described in this page is not available.
1547 SCSI テープドライブを用いるには、基本の SCSI ドライバ、
1548 SCSI アダプタのドライバ、 SCSI テープドライバのすべてが
1549 カーネルに組み込まれているか、あるいはモジュールとしてロードされている
1550 必要がある。 SCSI テープドライバがないと、
1551 ドライブは認識されるが、
1552 このページで記述されているテープのサポートは利用できない。
1553 .IP 4.
1554 .\"O The driver writes error messages to the console/log.
1555 .\"O The SENSE
1556 .\"O codes written into some messages are automatically translated to text
1557 .\"O if verbose SCSI messages are enabled in kernel configuration.
1558 ドライバはエラーメッセージをコンソールとログとに書き出す。
1559 カーネル設定で verbose SCSI messages が有効にされていると、
1560 SENSE コードが自動的にテキストに変換されて、
1561 いくつかのメッセージに書きだされる。
1562 .IP 5.
1563 .\"O The driver's internal buffering allows good throughput in fixed-block
1564 .\"O mode also with small
1565 .\"O .BR read (2)
1566 .\"O and
1567 .\"O .BR write (2)
1568 .\"O byte counts.
1569 .\"O With direct transfers
1570 .\"O this is not possible and may cause a surprise when moving to the 2.6
1571 .\"O kernel.
1572 .\"O The solution is to tell the software to use larger transfers (often
1573 .\"O telling it to use larger blocks).
1574 .\"O If this is not possible, direct transfers can be disabled.
1575 このドライバの内部バッファリングは、固定ブロックモードなら
1576 .BR read (2)
1577
1578 .BR write (2)
1579 のバイト数が小さくても良いスループットを出す。
1580 直接転送ではこれは不可能なので、2.6 カーネルに移行したときに驚くかもしれない。
1581 解決法としては、ソフトウェアにより大きな転送を行うよう伝える
1582 (たいていはより大きなブロックを使わせる) ことである。
1583 これが不可能なら、直接転送を無効にすることもできる。
1584 .\"O .SH COPYRIGHT
1585 .\" .SH 著作権
1586 .\" Copyright \(co 1995 Robert K. Nichols.
1587 .\" .br
1588 .\" Copyright \(co 1999-2005 Kai M\(:akisara.
1589 .\" .PP
1590 .\" Permission is granted to make and distribute verbatim copies of this
1591 .\" manual provided the copyright notice and this permission notice are
1592 .\" preserved on all copies.
1593 .\" Additional permissions are contained in the header of the source file.
1594 .\"O .SH "SEE ALSO"
1595 .SH 関連項目
1596 .BR mt (1)
1597 .PP
1598 .\"O The file
1599 .\"O .I drivers/scsi/README.st
1600 .\"O or
1601 .\"O .I Documentation/scsi/st.txt
1602 .\"O (kernel >= 2.6) in the kernel sources contains
1603 .\"O the most recent information about the driver and its configuration
1604 .\"O possibilities.
1605 カーネルソースの
1606 .I drivers/scsi/README.st
1607
1608 .I Documentation/scsi/st.txt
1609 (カーネル 2.6 以降) の各ファイルには、
1610 ドライバに関するより新しい情報や、
1611 その設定可能な範囲に関する内容が含まれている。