1 .\" Copyright 1995 Robert K. Nichols (Robert.K.Nichols@att.com)
2 .\" Copyright 1999-2005 Kai M¥Æ¡¢kisara (Kai.Makisara@kolumbus.fi)
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.
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.
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
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
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
31 .TH ST 4 2010-09-04 "Linux" "Linux Programmer's Manual"
33 .\"O st \- SCSI tape device
35 st \- SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹
39 .B #include <sys/mtio.h>
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 );
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.
55 .\"O driver uses major device number 9.
57 ¥É¥é¥¤¥Ð¡¼¤ÏÍÍ¡¹¤Ê SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Î¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤òÄ󶡤¹¤ë¡£
58 ¸½ºß¤Ç¤Ï¡¢¥É¥é¥¤¥Ð¡¼¤Ï¸¡½Ð¤µ¤ì¤¿Á´¤Æ¤Î
59 \(lq¥·¡¼¥±¥ó¥·¥ã¥ë¥¢¥¯¥»¥¹ (sequential-access) \(rq ¥¿¥¤¥×¤Î¥Ç¥Ð¥¤¥¹¤Ø¤Î
62 ¥É¥é¥¤¥Ð¡¼¤Ï¥á¥¸¥ã¡¼¥Ç¥Ð¥¤¥¹ÈÖ¹æ 9 ¤òÍѤ¤¤ë¡£
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
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,
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
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 ¥Ó¥Ã¥È¤Ï¡¢¸¡½Ð¤µ¤ì¤¿½ç¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë¡£
86 Äã°Ì¦ 8 ¥Ó¥Ã¥È¤è¤ê¤â¾å°Ì¤Ë¤¢¤ë¥Ó¥Ã¥È·²¤¬¤³¤Î 5 ¥Ó¥Ã¥È¤ËÏ¢·ë (concatenate)
87 ¤µ¤ì¡¢¥Æ¡¼¥ÖÈÖ¹æ¤È¤Ê¤ë¡£
88 ¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤Ï¡¢¤½¤ì¤¾¤ì 4 ¤Ä¤Î¿ô»ú¤«¤é¤Ê¤ëÆó¤Ä¤Î¥»¥Ã¥È¤Ë
90 ´ðËÜ (¼«Æ°´¬¤Ìᤷ) ¥Ç¥Ð¥¤¥¹ÈÖ¹æ
92 ¤ª¤è¤Ó \(lqÈ󴬤Ìᤷ (no-rewind) \(rq ¥Ç¥Ð¥¤¥¹ÈÖ¹æ
95 ´ðËܥǥХ¤¥¹ÈÖ¹æ¤òÍѤ¤¤Æ¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Ë¤Ï¡¢
99 \(lqÈ󴬤Ìᤷ\(rq ¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤òÍѤ¤¤Æ¥ª¡¼¥×¥ó¤µ¤ì¤¿¾ì¹ç¤Ï
100 \s-1REWIND\s+1 ¥³¥Þ¥ó¥É¤ÏÁ÷¤é¤ì¤Ê¤¤
101 (¼«Æ°´¬¤Ìᤷ¥Ç¥Ð¥¤¥¹¤ò¥Æ¡¼¥×¤Î°ÌÃÖ·è¤á¤Ë (Î㤨¤Ð mt ¤Ç) ÍѤ¤¤Æ¤â¡¢
102 ˾¤à·ë²Ì¤ÏÆÀ¤é¤ì¤Ê¤¤¡£¥Æ¡¼¥×¤Ï mt ¥³¥Þ¥ó¥É¤Î¸å¤Ç´¬¤Ìᤵ¤ì¡¢
103 ¼¡¤Î¥³¥Þ¥ó¥É¤Ï¥Æ¡¼¥×¤ÎÀèƬ¤«¤é»Ï¤Þ¤Ã¤Æ¤·¤Þ¤¦)¡£
105 .\"O Within each group, four minor numbers are available to define
106 .\"O devices with different characteristics (block size, compression,
108 .\"O When the system starts up, only the first device is
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
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 Æó¤Ä¤Î¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤ÇÀ©¸æ¤¹¤ë¤è¤¦¤Ë¤â¤Ç¤¤ë¡£)
129 .\"O Devices are typically created by:
130 ¥Ç¥Ð¥¤¥¹¤ÏÉáÄ̼¡¤Î¤è¤¦¤Ëºî¤é¤ì¤ë:
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
145 .\"O There is no corresponding block device.
146 ¤³¤ì¤é¤Ë¤ÏÂбþ¤¹¤ë¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Ï¸ºß¤·¤Ê¤¤¡£
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.
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 ¤È¤Ê¤ë)¡£
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 ¤Ë¤è¤ë¥É¥é¥¤¥Ð¤Î¥Ç¥Þ¥ó¥É¥í¡¼¥É¤Ë´Ø¤·¤Æ¤âÅö¤Æ¤Ï¤Þ¤ë)¡£
189 .\"O The driver does not specifically support any tape drive brand or
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.
196 .\"O be changed with explicit
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
201 ¥É¥é¥¤¥Ð¤Ï¥É¥é¥¤¥Ö¤Î¥á¡¼¥«¤ä¥â¥Ç¥ë¤òÆÃÄꤷ¤Æ¥µ¥Ý¡¼¥È¤¹¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
202 ¥·¥¹¥Æ¥à¤¬µ¯Æ°¤¹¤ë¤È¡¢¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Î¥ª¥×¥·¥ç¥ó¤¬¥É¥é¥¤¥Ö¤Î
203 ¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë¡£Î㤨¤Ð¡¢
204 ¥É¥é¥¤¥Ö¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤¬¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤òÁªÂò¤¹¤ì¤Ð¡¢
205 ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Ï¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤ò»È¤¦¤³¤È¤Ë¤Ê¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï
207 ¥³¡¼¥ë¤òÌÀ¼¨Åª¤Ë»È¤¨¤ÐÊѹ¹¤Ç¤¡¢
208 ¤½¤ÎÊѹ¹¤Ï¥Ç¥Ð¥¤¥¹¤¬¥¯¥í¡¼¥º¤µ¤ì¤ÆºÆ¤Ó¥ª¡¼¥×¥ó¤µ¤ì¤¿¤È¤¤â»Ä¤ë¡£
211 ¼«Æ°´¬¤Ìᤷ¥Ç¥Ð¥¤¥¹¤ÈÈ󴬤Ìᤷ¥Ç¥Ð¥¤¥¹¤ÎξÊý¤Ë±Æ¶Á¤¹¤ë¡£
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
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
221 4 ¤Ä¤Î¥µ¥Ö¥°¥ë¡¼¥×¤½¤ì¤¾¤ì¤Î¥Ç¥Ð¥¤¥¹¤ËÂФ·¤Æ°Û¤Ê¤ë¥ª¥×¥·¥ç¥ó¤ò
222 Í¿¤¨¤ë¤³¤È¤¬¤Ç¤¤ë¡£¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Ð¥¤¥¹¤¬¥ª¡¼¥×¥ó¤µ¤ì¤¿¤È¤¤Ë
223 ¸úÎϤòȯ´ø¤¹¤ë¡£Î㤨¤Ð¡¢¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Ï¤¢¤ë¥Ç¥Ð¥¤¥¹¤ò
224 ŬÅö¤Ê¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Î¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç½ñ¤¹þ¤à¤è¤¦¤ËÄêµÁ¤·¡¢
225 Ê̤ΥǥХ¤¥¹¤ò²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç½ñ¤¹þ¤à¤è¤¦¤Ë¤Ç¤¤ë (¥É¥é¥¤¥Ö¤¬
226 ξÊý¤Î¥â¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð)¡£
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
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
242 .\"O The partition switch is executed together with
243 .\"O the next tape operation in order to avoid unnecessary tape
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
249 .\"O that can format a tape with either one or two partitions.
251 .B ¥Æ¡¼¥×¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó
252 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë (¥É¥é¥¤¥Ö¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç)¡£
253 (¥Æ¡¼¥×¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ï¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¤Ï¤Ê¤ó¤Î´Ø·¸¤â¤Ê¤¤¡£
254 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó²½¤µ¤ì¤¿¥Æ¡¼¥×¤Ï¡¢°ì¤Ä¤Î¥á¥Ç¥£¥¢¤ËÊ£¿ô¤ÎÏÀÍý¥Æ¡¼¥×¤¬
255 ¸ºß¤¹¤ë¤«¤Î¤è¤¦¤Ë¸«¤¨¤ë¡£)
256 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥Ý¡¼¥È¤Ï
258 ¤Ë¤è¤Ã¤Æ͸ú¤Ë¤Ç¤¤ë¡£
259 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬Êѹ¹¤µ¤ì¤ë¤È¡¢
260 ¥Æ¡¼¥×¤Î°ÌÃ֤Ϥ½¤ì¤¾¤ì¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥óÆâÉô¤ÇÊݸ¤µ¤ì¤ë¡£
261 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎÁªÂò¤Ï
264 ¤½¤ì°Ê¹ß¤Î¥Æ¡¼¥×Áàºî¤ÎÂоݤϡ¢¤½¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¤Ê¤ë¡£
265 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎÀÚ¤êÂؤ¨¤Ï¡¢¼¡¤Î¥Æ¡¼¥×Áàºî¤ÈƱ»þ¤Ë¹Ô¤ï¤ì¡¢
266 ÉÔɬÍפʥơ¼¥×°ÜÆ°¤ò¤·¤Ê¤¯¤Æ¤¹¤à¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
267 °ì¤Ä¤Î¥Æ¡¼¥×¤Ë¤ª¤±¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎºÇÂç¿ô¤Ï
268 ¥³¥ó¥Ñ¥¤¥ë»þ¤ÎÄê¿ô¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë (Ä̾ï¤Ï 4)¡£
269 ¥É¥é¥¤¥Ð¤Ë¤Ï¡¢¥Æ¡¼¥×¤Î 1 ¤Ä¤Þ¤¿¤Ï
270 2 ¤Ä¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤¤ë¤è¤¦¤Ê
276 .\"O is usually created as a hard or soft link to the default tape device
278 Ä̾¥·¥¹¥Æ¥à¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤ËÂФ¹¤ë¥Ï¡¼¥É¥ê¥ó¥¯
279 ¤Þ¤¿¤Ï¥½¥Õ¥È¥ê¥ó¥¯¤È¤·¤Æ¡¢¥Ç¥Ð¥¤¥¹
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"
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
298 .\"O count determines the size of the corresponding tape block.
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 ¥³¥Þ¥ó¥É¤ò»È¤¦¤«¤É¤¦¤«¤À¤±¤Ç¤¢¤ë¡£
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 ¥Ö¥í¥Ã¥¯¤ÎÀèƬ¤«¤éÆɤ߹þ¤Þ¤ì¤ÆÊÖ¤µ¤ì¡¢¥Ö¥í¥Ã¥¯¤Î»Ä¤ê¤ÏÇË´þ¤µ¤ì¤ë¡£
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 ¤Ç¤Ï¡¢½ñ¤¹þ¤ß¥Ð¥¤¥È¿ô¤Ï¥Æ¡¼¥×¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎÀ°¿ôÇܤǤʤ±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
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
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 ¥¢¥À¥×¥¿¤«¤é¸«¤¨¤Ê¤¤¡¢
361 .\"O A filemark is automatically written to tape if the last tape operation
362 .\"O before close was a write.
363 ¥Æ¡¼¥×¤ò¥¯¥í¡¼¥º¤¹¤ëľÁ°¤Î¥Æ¡¼¥×ÁàºîÌ¿Î᤬½ñ¤¹þ¤ß¤Ç¤¢¤ì¤Ð¡¢
364 ¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬¼«Æ°Åª¤Ë¥Æ¡¼¥×¤Ø½ñ¤¹þ¤Þ¤ì¤ë¡£
366 .\"O When a filemark is encountered while reading, the following
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
372 .\"O The following read returns data from the next file.
374 .\"O recorded data is signaled by returning zero bytes for two consecutive
376 .\"O The third read returns an error.
377 Æɤ߹þ¤ß»þ¤Ë¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Ë½Ð²ñ¤¦¤È¡¢°Ê²¼¤¬¼Â¹Ô¤µ¤ì¤ë¡£
378 ¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬¸«ÉÕ¤«¤Ã¤¿¤È¤¤Ë¥Ð¥Ã¥Õ¥¡¤Ë¥Ç¡¼¥¿¤¬»Ä¤Ã¤Æ¤¤¤ë¤È¡¢
379 ¥Ð¥Ã¥Õ¥¡¤Î¥Ç¡¼¥¿¤¬ÊÖ¤µ¤ì¤ë¡£¼¡¤ÎÆɤ߹þ¤ßÁàºî¤Ï 0 ¥Ð¥¤¥È¤òÊÖ¤¹¡£
380 ¤½¤Î¼¡¤ÎÆɤ߹þ¤ß¤Ï¼¡¤Î¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿¤òÊÖ¤¹¡£
381 µÏ¿¥Ç¡¼¥¿¤ÎËöÈø¤Ï¡¢Æɤ߹þ¤ßÁàºî¤¬Æó²ó³¤±¤Æ
382 0 ¥Ð¥¤¥È¤òÊÖ¤·¤ÆÍè¤ë¤«¤¿¤Á¤ÇÄÌÃΤµ¤ì¤ë¡£»°²óÌܤÎÆɤ߹þ¤ß¤Ï¥¨¥é¡¼¤òÊÖ¤¹¡£
385 .\"O The driver supports three
388 .\"O Requests not recognized by the
390 .\"O driver are passed to the
393 .\"O The definitions below are from
394 .\"O .IR /usr/include/linux/mtio.h :
397 Í×µá¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
399 ¥É¥é¥¤¥Ð¤Ë¤è¤Ã¤Æǧ¼±¤µ¤ì¤Ê¤«¤Ã¤¿Í×µá¤Ï
401 ¥É¥é¥¤¥Ð¤Ë¤ï¤¿¤µ¤ì¤ë¡£
403 .I /usr/include/linux/mtio.h
405 .\"O .SS "MTIOCTOP \(em Perform a tape operation"
406 .SS "MTIOCTOP \(em ¥Æ¡¼¥×Áàºî¤Î¼Â¹Ô"
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
413 .\"O error if the drive rejects an operation.
416 ·¿¤Î°ú¿ô¤ò¤È¤ë¡£Á´¤Æ¤Î¥É¥é¥¤¥Ö¤¬Á´¤Æ¤ÎÁàºî¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
417 ¥É¥é¥¤¥Ö¤¬Áàºî¤òµñÈݤ¹¤ë¤È¡¢¥É¥é¥¤¥Ð¤Ï
423 /* Structure for MTIOCTOP \- mag tape op command: */
425 short mt_op; /* operations defined below */
426 int mt_count; /* how many of them */
431 .\"O Magnetic Tape operations for normal tape use:
432 Ä̾ï¤Î¥Æ¡¼¥×ÍøÍѤΤ¿¤á¤Î¼§µ¤¥Æ¡¼¥×Áàºî:
435 .\"O Backward space over
439 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯ (filemark) ʬ¤Î¸åÊý¥¹¥Ú¡¼¥¹ (backward space)¡£
442 .\"O Backward space over
445 .\"O Reposition the tape to the EOT side of the last filemark.
447 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯Ê¬¤Î¸åÊý¥¹¥Ú¡¼¥¹¡£
448 ¥Æ¡¼¥×¤Î°ÌÃÖ¤òºÇ¸å¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Î EOT ¦¤ËÊѹ¹¤¹¤ë¡£
451 .\"O Backward space over
453 .\"O records (tape blocks).
455 ¸Ä¤Î¥ì¥³¡¼¥É (¥Æ¡¼¥×¥Ö¥í¥Ã¥¯) ʬ¤Î¸åÊý¥¹¥Ú¡¼¥¹¡£
458 .\"O Backward space over
462 ¸Ä¤Î¥»¥Ã¥È¥Þ¡¼¥¯Ê¬¤Î¸åÊý¥¹¥Ú¡¼¥¹¡£
465 .\"O Enable compression of tape data within the drive if
467 .\"O is nonzero and disable compression if
470 .\"O This command uses the MODE page 15 supported by most DATs.
472 ¤¬ 0 °Ê³°¤Ê¤é¡¢¥É¥é¥¤¥Ö¤Î¥Ç¡¼¥¿°µ½Ì¤ò͸ú¤Ë¤¹¤ë¡£
473 0 ¤Ê¤é°µ½Ì¤ò̵¸ú¤Ë¤¹¤ë¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï MODE ¥Ú¡¼¥¸ 15 ¤òÍѤ¤¤ë¡£
474 ¤³¤ì¤Ï¤Û¤È¤ó¤É¤Î DAT ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
477 .\"O Go to the end of the recorded media (for appending files).
478 (¥Õ¥¡¥¤¥ë¤òÄɲ乤뤿¤á¤Ë) ¥á¥Ç¥£¥¢¤ÎµÏ¿Éôʬ¤ÎºÇ¸å¤Þ¤Ç¿Ê¤á¤ë¡£
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 (Á´ÂΤò¾Ãµî¤¹¤ë) ¤ò¹Ô¤¦¡£
490 .\"O Forward space over
494 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹ (forward space)¡£
497 .\"O Forward space over
500 .\"O Reposition the tape to the BOT side of the last filemark.
502 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹¡£
503 ¥Æ¡¼¥×¤Î°ÌÃ֤ϺǸå¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Î BOT ¦Êѹ¹¤µ¤ì¤ë¡£
506 .\"O Forward space over
508 .\"O records (tape blocks).
510 ¸Ä¤Î¥ì¥³¡¼¥É (¥Æ¡¼¥×¥Ö¥í¥Ã¥¯) ʬ¤ÎÁ°Êý¥¹¥Ú¡¼¥¹¡£
513 .\"O Forward space over
517 ¸Ä¤Î¥»¥Ã¥È¥Þ¡¼¥¯Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹¡£
520 .\"O Execute the SCSI load command.
521 .\"O A special case is available for some HP
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: ¤¢¤Ã¤Æ¤ë¡©
533 .B MT_ST_HPLOADER_OFFSET
534 ¤È¤¢¤ë¿ôÃͤÎϤǤ¢¤ë¾ì¹ç¡¢
535 ¤½¤Î¿ôÃͤ¬¥É¥é¥¤¥Ö¤ËÁ÷¤é¤ì¡¢¥ª¡¼¥È¥í¡¼¥À¤ÎÀ©¸æ¤ËÍѤ¤¤é¤ì¤ë¡£
538 .\"O Lock the tape drive door.
539 ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ÎÈâ¤ò¥í¥Ã¥¯¤¹¤ë¡£
542 .\"O Format the tape into one or two partitions.
545 .\"O is nonzero, it gives the size of the first partition and the second
546 .\"O partition contains the rest of the tape.
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
554 ¥Æ¡¼¥×¤ò 1 ¤Þ¤¿¤Ï 2 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë¡£
556 ¤¬ 0 ¤Ç¤Ê¤±¤ì¤Ð¡¢¤³¤ì¤¬ºÇ½é¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÍ¿¤¨¡¢
557 ÆóÈÖÌܤΥѡ¼¥Æ¥£¥·¥ç¥ó¤¬¥Æ¡¼¥×¤Î»Ä¤ê¤Ë¤Ê¤ë¡£
559 ¤¬ 0 ¤Î¾ì¹ç¤Ï¡¢¥Æ¡¼¥×¤Ï°ì¤Ä¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¤·¤Æ¥Õ¥©¡¼¥Þ¥Ã¥È¤µ¤ì¤ë¡£
560 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥Ý¡¼¥È¤¬Í¸ú¤Ë¤µ¤ì¤¿
561 ¥É¥é¥¤¥Ö¤Ç¤Ê¤±¤ì¤Ð»È¤¨¤Ê¤¤ (°Ê²¼¤Î
562 .B MT_ST_CAN_PARTITIONS
566 .\"O No op\(emflushes the driver's buffer as a side effect.
567 .\"O Should be used before reading status with
569 ²¿¤âÁàºî¤ò¹Ô¤ï¤Ê¤¤¡£\(emÉû¼¡Åª¤Ê¸ú²Ì¤È¤·¤Æ¡¢¥É¥é¥¤¥Ð¡¼¤Î¥Ð¥Ã¥Õ¥¡
572 ¤ò»È¤Ã¤Æ¾õÂÖ¤òÆɤ߽Ф¹Á°¤Ë¤Ï¤³¤ÎÁàºî¤ò¹Ô¤¦¤Ù¤¤Ç¤¢¤ë¡£
575 .\"O Rewind and put the drive off line.
576 ´¬¤Ìᤷ (rewind) ¤ò¹Ô¤¤¡¢¥É¥é¥¤¥Ö¤ò¥ª¥Õ¥é¥¤¥ó (off line) ¤Ë¤¹¤ë¡£
580 ¥É¥é¥¤¥Ö¤ò¥ê¥»¥Ã¥È¤¹¤ë¡£
583 .\"O Re-tension tape.
584 ¥Æ¡¼¥×¤ò¥ê¥Æ¥ó¥·¥ç¥ó (re-tension) ¤¹¤ë
585 (¥Æ¡¼¥×¤òºÇ¸å¤Þ¤Ç´¬¤¤¤¿¸å¡¢ºÇ½é¤Þ¤Ç´¬¤Ì᤹)¡£
592 .\"O Seek to the tape block number specified in
594 .\"O This operation requires either a SCSI-2 drive that supports the
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
601 .\"O if device-specific addresses are used.
603 ¤Ç»ØÄꤵ¤ì¤¿¥Æ¡¼¥×¥Ö¥í¥Ã¥¯ÈÖ¹æ¤ò¥·¡¼¥¯¤¹¤ë¡£
604 ¤³¤ÎÁàºî¤¬¹Ô¤¨¤ë¤Î¤Ï¡¢ \s-1LOCATE\s+1 ¥³¥Þ¥ó¥É (¥Ç¥Ð¥¤¥¹¸ÇͤΥ¢¥É¥ì¥¹)
605 ¤ò¥µ¥Ý¡¼¥È¤¹¤ë SCSI-2 ¥É¥é¥¤¥Ö¤«¡¢¤¢¤ë¤¤¤Ï Tandberg
606 ¸ß´¹¤Î SCSI-1 ¥É¥é¥¤¥Ö (Tandberg, Archive, Viper, Wangtek,¡Ä) ¤Ç¤¢¤ë¡£
607 ¥Ç¥Ð¥¤¥¹¸ÇͤΥ¢¥É¥ì¥¹¤¬ÍøÍѤµ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Ï
608 °ÊÁ°¤Ë \s-1MTIOCPOS\s+1 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤¿¤â¤Î¤Ë¤¹¤Ù¤¤Ç¤¢¤ë¡£
611 .\"O Set the drive's block length to the value specified in
613 .\"O A block length of zero sets the drive to variable block size mode.
615 ¤ÎÃͤò¥É¥é¥¤¥Ö¤Î¥Ö¥í¥Ã¥¯Ä¹ (block length) ¤È¤·¤Æ¥»¥Ã¥È¤¹¤ë¡£
616 ¥Ö¥í¥Ã¥¯Ä¹¤ò 0 ¤Ë¤¹¤ë¤È¥É¥é¥¤¥Ö¤Ï²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¥â¡¼¥É¤Ë¥»¥Ã
620 .\"O Set the tape density to the code in
622 .\"O The density codes supported by a drive can be found from the drive
624 ¥Æ¡¼¥×Ì©ÅÙ (tape density) ¤ò
626 ¤Ç¼¨¤µ¤ì¤ë¥³¡¼¥É¤ËÊѹ¹¤¹¤ë¡£¥É¥é¥¤¥Ö¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÌ©ÅÙ¥³¡¼¥É
627 ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥É¥é¥¤¥Ö¤Îʸ½ñ¤Ë½ñ¤¤¤Æ¤¢¤ë¤À¤í¤¦¡£
630 .\"O The active partition is switched to
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
637 ¥¢¥¯¥Æ¥£¥Ö¤Ê¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÂè
639 ÈÖÌܤËÀÚ¤êÂؤ¨¤ë¡£¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ï 0 ¤«¤é¿ô¤¨¤ë¡£
640 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥Ý¡¼¥È¤¬Í¸ú¤Ë¤µ¤ì¤¿
641 ¥É¥é¥¤¥Ö¤Ç¤Ê¤±¤ì¤Ð»È¤¨¤Ê¤¤ (°Ê²¼¤Î
642 .B MT_ST_CAN_PARTITIONS
646 .\"O Execute the SCSI unload command (does not eject the tape).
647 SCSI unload ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë (¥Æ¡¼¥×¤Î¥¤¥¸¥§¥¯¥È¤Ï¹Ô¤ï¤Ê¤¤)¡£
650 .\"O Unlock the tape drive door.
651 ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ÎÈâ¤Î¥í¥Ã¥¯¤ò²ò½ü¤¹¤ë¡£
658 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤ò½ñ¤¹þ¤à¡£
665 ¸Ä¤Î¥»¥Ã¥È¥Þ¡¼¥¯¤ò½ñ¤¹þ¤à¡£
667 .\"O Magnetic Tape operations for setting of device options (by the superuser):
668 ¥Ç¥Ð¥¤¥¹¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Î¤¿¤á¤Î (¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤è¤ë) ¼§µ¤¥Æ¡¼¥×Áàºî:
671 .\"O Set various drive and driver options according to bits encoded in
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 ¤¤¤í¤¤¤í¤Ê¥É¥é¥¤¥Ö¤È¥É¥é¥¤¥Ð¡¼¤Î¥ª¥×¥·¥ç¥ó¤ò
680 ¤Ë¥¨¥ó¥³¡¼¥É¤µ¤ì¤¿³Æ¥Ó¥Ã¥È¤Ë½¾¤Ã¤ÆÀßÄꤹ¤ë¡£
681 ¥ª¥×¥·¥ç¥ó¤Ë¤Ï¡¢¥É¥é¥¤¥Ö¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¥â¡¼¥É¡¢
682 ¥Ö¡¼¥ëÃͤΥɥ饤¥Ð¥ª¥×¥·¥ç¥ó¤Î½¸¹ç¡¢
683 ¥Ð¥Ã¥Õ¥¡¤Î½ñ¤¹þ¤ßïçÃÍ (¥Ç¥Õ¥©¥ë¥È¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÈÌ©ÅÙ)¡¢
684 ¥¿¥¤¥à¥¢¥¦¥ÈÃͤ¬´Þ¤Þ¤ì¤ë (¥«¡¼¥Í¥ë 2.1 °Ê¹ß)¡£
685 °ì²ó¤ÎÁàºî¤ÇÊѤ¨¤é¤ì¤ë¤Î¤Ï¡¢¾åµ¤Î¥ê¥¹¥È¤Î¤É¤ì¤«°ì¤Ä¤À¤±¤Ç¤¢¤ë
686 (Ê£¿ô¤Î¥Ö¡¼¥ëÃͤϤޤȤá¤Æ°ì¤Ä¤È´ªÄꤵ¤ì¤ë)¡£
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 ¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¥â¡¼¥É¤Ï°Ê²¼¤ÎÄ̤ê:
696 .\"O The drive will not report
698 .\"O status on write commands until the data
699 .\"O blocks are actually written to the medium.
700 ¥É¥é¥¤¥Ö¤Ï¥é¥¤¥È¥³¥Þ¥ó¥É¤ËÂФ·¡¢
701 ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤¬¼ÂºÝ¤ËÇÞÂΤ˽ñ¤¹þ¤Þ¤ì¤ë¤Þ¤Ç
703 ¤Î¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤µ¤Ê¤¤¡£
705 .\"O The drive may report
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 ¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ö¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤ËžÁ÷¤µ¤ì¤ë¤È¤¹¤°¤Ë¡¢
712 ¤Î¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤¹¤³¤È¤¬¤Ç¤¤ë¡£
714 .\"O The drive may report
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 ¤Ä¤Î¾ò·ï¤¬¤½¤í¤Ã¤¿¾ì¹ç¡¢
723 ¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤¹»ö¤¬¤Ç¤¤ë¡£
724 (a) ¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ö¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤ËžÁ÷¤µ¤ì¤¿¡£
725 (b) ÊÌ¡¹¤Î¥¤¥Ë¥·¥¨¡¼¥¿¡¼¤«¤éÍ褿¥Ð¥Ã¥Õ¥¡¥Ç¡¼¥¿¤¬¡¢
726 ¤¹¤Ù¤ÆÇÞÂΤØÌäÂê¤Ê¤¯½ñ¤¹þ¤Þ¤ì¤¿¡£
729 .\"O To control the write threshold the value in
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 ½ñ¤¹þ¤ßïçÃͤòÀ©¸æ¤¹¤ë¤Ë¤Ï¡¢
741 .B MT_ST_WRITE_THRESHOLD
742 ¤È¥Ö¥í¥Ã¥¯¥«¥¦¥ó¥È¤Î¥Ó¥Ã¥ÈËè¤Î OR ¤ò¤È¤Ã¤¿Ãͤò
743 ²¼°Ì¤Î 28¥Ó¥Ã¥È¤Ë´Þ¤Þ¤Í¤Ð¤Ê¤é¤Ê¤¤¡£
744 ¤³¤Î¥Ö¥í¥Ã¥¯¥«¥¦¥ó¥È¤Ï 1024 ¥Ð¥¤¥È¥Ö¥í¥Ã¥¯¤òñ°Ì¤È¤·¤¿¤â¤Î¤Ç¡¢
745 ¥Æ¡¼¥×¤ÎʪÍý¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤òñ°Ì¤È¤·¤¿¤â¤Î¤Ç¤Ï¤Ê¤¤¡£
746 ¤Þ¤¿¡¢ïçÃͤϥɥ饤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡ (¾åµ¤ÎÀâÌÀ»²¾È)
747 ¤Î¥µ¥¤¥º¤ò±Û¤¨¤ë»ö¤Ï¤Ç¤¤Ê¤¤¡£
749 .\"O To set and clear the Boolean options
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 ,
757 .\"O .BR MT_ST_DEFBOOLEANS
758 .\"O bitwise OR'ed with
759 .\"O whatever combination of the following options is desired.
761 .\"O .BR MT_ST_BOOLEANS
762 .\"O the options can be set to the values
763 .\"O defined in the corresponding bits.
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 ¥Ö¡¼¥ëÃͤΥե饰¤òÀßÄꡦ²ò½ü¤¹¤ë¤Ë¤Ï¡¢
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 ¤òÍѤ¤¤ë¤È
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 ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó¤Ï
795 ¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹ (Îã: ¥Þ¥¤¥Ê¡¼ÈÖ¹æ ¤¬ 32 ¤ä 160 ¤Î¥Ç¥Ð¥¤¥¹)
796 ¤Ï¡¢¤½¤ì¤é¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó¤¬ºÇ½é¤ËÄêµÁ¤µ¤ì¤¿¤È¤¤Ë
797 ¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤ë¡£¥¢¥¯¥Æ¥£¥Ö¤Ë¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Ï¡¢
798 µ¯Æ°»þ¤Ë¥¢¥¯¥Æ¥£¥Ö¤Ë¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤«¤é¡¢
799 ÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¥ª¥×¥·¥ç¥ó¤ò·Ñ¾µ¤¹¤ë¡£
801 .\"O The Boolean options are:
802 ¥Ö¡¼¥ëÃͤΥª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê:
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 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ïµ¶¤ËÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
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
826 .\"O This option must be set false to write reliable multivolume archives.
827 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¿¿¤Î»þ¤Ë¤Ï¡¢¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ð¤Î¥Ð¥Ã¥Õ¥¡¤Ë¼ý¤Þ¤ë»þ¤Ë¤Ï
828 ¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ö¤ËžÁ÷¤µ¤ì¤ë¤Î¤òÂÔ¤¿¤º¤Ë¡¢¤¹¤°¤Ë½ñ¤¹þ¤ßÁàºî¤¬Ê֤äÆÍè¤ë¡£
829 ¥Ð¥Ã¥Õ¥¡¤¬¤É¤Î¤¯¤é¤¤¶õ¤¤¤¿¤é¼¡¤Î SCSI write ¥³¥Þ¥ó¥É¤òȯ¹Ô¤Ç¤¤ë¤«¤Ï¡¢
830 ½ñ¤¹þ¤ßïçÃͤˤè¤Ã¤Æ·è¤Þ¤ë¡£
831 ¥É¥é¥¤¥Ö¤¬ÊÖ¤¹¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¤Ï¡¢¼¡¤ÎÁàºî¤Þ¤ÇÊݸ¤µ¤ì¤ë¡£
832 ¿®ÍêÀ¤Î¤¢¤ë¥Þ¥ë¥Á¥Ü¥ê¥å¡¼¥à¥¢¡¼¥«¥¤¥Ö¤ò½ñ¤¹þ¤à¤¿¤á¤Ë¤Ï¡¢
833 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ïµ¶¤ËÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
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 ¤¹¤Ù¤Æ¤ÎÆɤ߹þ¤ßÁàºî¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎÇÜ¿ô¤ÎÂ礤µ¤Ç¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
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 ¤Ä¤á¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Î¤È¤³¤í¤ËÌá¤ë¡£
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.
867 QIC¥Æ¡¼¥×¥É¥é¥¤¥Ö¤Ï¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Ë¾å½ñ¤¤¹¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¤Î¤Ç¡¢
868 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¿¿¤Ë¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
869 ¤³¤ì¤é¤Î¥É¥é¥¤¥Ö¤ÏµÏ¿¥Ç¡¼¥¿¤ÎËöÈø¤Î¸¡ÃΤˡ¢
870 ¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬ 2¤Ä³¤±¤Æ¤¢¤ë¤«¤Ç¤Ï¤Ê¤¯¡¢
871 ¥Ö¥é¥ó¥¯¥Æ¡¼¥×¤«¤É¤¦¤«¤Î¥Æ¥¹¥È¤òÍѤ¤¤ë¡£
872 ¸½ºß¤Î¾¤Î¤Û¤È¤ó¤É¤Î¥É¥é¥¤¥Ö¤â¡¢µÏ¿¥Ç¡¼¥¿¤ÎËöÈø¤ò¸¡ÃΤ¹¤ë¡£
873 2 ¤Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬É¬Íפˤʤë¤Î¤Ï¡¢
874 ¾¤Î¥·¥¹¥Æ¥à¤È¥Æ¡¼¥×¤ò¤ä¤ê¤È¤ê¤¹¤ë¾ì¹ç¤Ç¤¢¤ë¡£
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
881 .\"O defined nonzero).
882 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¿¿¤Ë¤¹¤ë¤È¡¢
883 ¥É¥é¥¤¥Ð¤Ï¤¤¤í¤¤¤í¤Ê¥Ç¥Ð¥Ã¥°ÍÑ¥á¥Ã¥»¡¼¥¸¤ò½Ð¤¹¤è¤¦¤Ë¤Ê¤ë
885 ¤òÈó¥¼¥í¤ËÄêµÁ¤·¤Æ¥É¥é¥¤¥Ð¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤ë»þ¤Î¤ß͸ú)¡£
887 .\"O .BR MT_ST_FAST_EOM " (Default: false)"
888 .BR MT_ST_FAST_EOM " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
889 .\"O This option causes the
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
897 .\"O .B MT_ST_FAST_EOM
898 .\"O is false the driver will respond to an
900 .\"O request by forward spacing over files.
901 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¿¿¤Ë¤¹¤ë¤È¡¢
903 Áàºî¤¬Ä¾Àܥɥ饤¥Ö¤ËÁ÷¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ë¡£
904 Áàºî¤¬Á᤯¤Ê¤ë¤Ï¤º¤À¤¬¡¢
905 ¥É¥é¥¤¥Ð¤¬¸½ºß¤Î¥Õ¥¡¥¤¥ëÈÖ¹æ¤ò¸«¼º¤¦¤³¤È¤Ë¤Ê¤ë
908 ¥ê¥¯¥¨¥¹¥È¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë)¡£
910 ¤¬µ¶¤Î»þ¤Ë¤Ï¡¢¥É¥é¥¤¥Ð¤Ï
912 ¥ê¥¯¥¨¥¹¥È¤Ë±þ¤¨¤ë¤È¤¡¢Á°Êý¤Ë¥Õ¥¡¥¤¥ë¤ò°ì¤Ä°ì¤Ä¿Ê¤á¤Æ¤¤¤¯¡£
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 ¥¯¥í¡¼¥º¤µ¤ì¤ë¤È¥¢¥ó¥í¥Ã¥¯¤µ¤ì¤ë¡£
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
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.
934 .\"O option is true, the SCSI-commands are not sent until a write is
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 ³Îǧ¤Î¤¿¤á¤À¤±¤ËÍѤ¤¤é¤ì¤ë¡£
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.
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 ¥Ç¥Ð¥¤¥¹¤Î¥¯¥í¡¼¥º»þ¤Ë¥Æ¡¼¥×¤¬Àµ¤·¤¤°ÌÃ֤ˤʤé¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£
975 2.6 ¥«¡¼¥Í¥ë¤Ç¤Ï¡¢SCSI-3 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¥É¥é¥¤¥Ö¤ËÂФ·¤Æ¡¢
976 ¤³¤ÎÃͤΥǥե©¥ë¥È¤Ï¿¿¤È¤Ê¤ë¡£
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"
983 .\"O If this is used, the driver does not use the command.
985 .\"O that the driver can't check before sending commands if the selected
986 .\"O block size is acceptable to the drive.
988 .B READ BLOCK LIMITS SCSI
989 ¥³¥Þ¥ó¥É¤ò¼õ¤±¤Ä¤±¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£
990 ¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤È¡¢¥É¥é¥¤¥Ð¤Ï¤³¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Ê¤¤¡£
991 ·çÅÀ¤Ï¡¢»ØÄꤷ¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬¥É¥é¥¤¥Ö¤Ë¼õÍý¤µ¤ì¤Æ¤·¤Þ¤¦¤È¡¢
992 ¥É¥é¥¤¥Ð¤Î¥³¥Þ¥ó¥ÉÁ÷¿®Á°¥Á¥§¥Ã¥¯¤¬¤Ç¤¤Ê¤¯¤Ê¤ëÅÀ¤Ç¤¢¤ë¡£
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
998 .\"O The option applies to all devices linked to a drive.
999 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢°ì¤Ä¤Î¥Æ¡¼¥×¤ËÊ£¿ô¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÃÖ¤¯¤³¤È¤ò
1000 ¥µ¥Ý¡¼¥È¤¹¤ë¤«¤É¤¦¤«¤ò·è¤á¤ë¡£
1001 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥É¥é¥¤¥Ö¤Ë¥ê¥ó¥¯¤µ¤ì¤¿Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤ËŬÍѤµ¤ì¤ë¡£
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
1011 .\"O commands and when changing tape
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.
1017 .\"O drives that only support the logical block addresses.
1019 seek ¤ª¤è¤Ó tell Áàºî (ξ¼Ô¤È¤â
1020 .BR MTSEEK ¡¦ MTIOCPOS
1021 ¥³¥Þ¥ó¥É¤òȼ¤¤¡¢¥Æ¡¼¥×°ÌÃÖ¤òÊѹ¹¤¹¤ë¤È¤) ¤ÎºÝ¤Ë¡¢
1022 SCSI-2 ¤Îɸ½à¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÏÀÍý¥Ö¥í¥Ã¥¯¥¢¥É¥ì¥¹¤òÍѤ¤¤ë¤«¤É¤¦¤«¤ò
1024 .\"nakano both with ¤ÎÉôʬ²ø¤·¤¤¡£
1025 µ¶¤À¤È¥Ç¥Ð¥¤¥¹¸ÇͤΥ¢¥É¥ì¥¹¤¬ÍѤ¤¤é¤ì¤ë¡£
1026 ¥É¥é¥¤¥Ö¤¬ÏÀÍý¥¢¥É¥ì¥¹¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤È¤¤Ï¡¢
1027 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤ò¶¯¤¯´«¤á¤ë¡£
1028 ¤³¤Î¥â¡¼¥É¤Ç¤Ï¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤â¥«¥¦¥ó¥È¤¹¤ë¤«¤é¤Ç¤¢¤ë¡£
1029 ÏÀÍý¥Ö¥í¥Ã¥¯¥¢¥É¥ì¥¹¤·¤«¥µ¥Ý¡¼¥È¤·¤Ê¤¤¥É¥é¥¤¥Ö¤â¤¤¤¯¤Ä¤«Â¸ºß¤·¤Æ¤¤¤ë¡£
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
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
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 ¤Î¥ë¡¼¥ë¤Ç¤Ï¥Æ¡¼¥×°ÌÃÖ¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
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 ¤Ê¤É) ¤ËÂФ·¤Æ͸ú¤Ë¤¹¤ë¡£
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);
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 ¤Ë¤è¤Ã¤ÆÀßÄê¤Ç¤¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÌ©ÅÙ¥³¡¼¥É¤Ï
1082 ¤Ë¤è¤Ã¤ÆÀßÄê¤Ç¤¤ë¡£
1083 ¤³¤ì¤é¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤÏÁàºî¥³¡¼¥É¤È OR ¤·¤ÆÍ¿¤¨¤ë¡£
1085 .\"O With kernels 2.1.x and later, the timeout values can be set with the
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
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 °Ê¹ß¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢¥¿¥¤¥à¥¢¥¦¥ÈÃͤÎÀßÄê¤Ï¡¢
1103 .B MT_ST_SET_TIMEOUT
1104 ¤ËÉÃñ°Ì¤Î¥¿¥¤¥à¥¢¥¦¥ÈÃͤò
1105 OR ¤·¤ÆÍ¿¤¨¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¨¤ë¡£ long ¥¿¥¤¥à¥¢¥¦¥È
1106 (´¬¤Ìᤷ¤Ê¤É¡¢Ä¹¤¤»þ´Ö¤¬¤«¤«¤ë¥³¥Þ¥ó¥É¤ËÂФ·¤ÆÍѤ¤¤é¤ì¤ë) ¤Ï
1107 .B MT_ST_SET_LONG_TIMEOUT
1109 ¥«¡¼¥Í¥ë¤Î¥Ç¥Õ¥©¥ë¥È¤ÏÈó¾ï¤ËŤ¯¡¢¤É¤Î¥É¥é¥¤¥Ö¤Ç¤â
1110 À®¸ù¤·¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤¬·è¤·¤Æ¥¿¥¤¥à¥¢¥¦¥È¤·¤Ê¤¤¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
1111 ¤·¤¿¤¬¤Ã¤Æ¡¢¥É¥é¥¤¥Ð¤Ï¥¿¥¤¥à¥¢¥¦¥È¤òÂԤäƤ¤¤ë¤À¤±¤Ê¤Î¤Ë¡¢
1112 »É¤µ¤Ã¤¿ (stuck ¤·¤¿) ¤è¤¦¤Ë¸«¤¨¤ë¤³¤È¤¬¤¢¤ë¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤ò»È¤¨¤Ð¡¢
1113 ÆÃÄê¤Î¥É¥é¥¤¥Ö¤ËÂФ·¤Æ¤â¤¦¾¯¤·¼ÂºÝŪ¤ÊÃͤËÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
1114 °ì¤Ä¤Î¥Ç¥Ð¥¤¥¹¤ËÀßÄꤷ¤¿¥¿¥¤¥à¥¢¥¦¥ÈÃͤϡ¢
1115 ¤½¤ì¤ÈƱ¤¸¥É¥é¥¤¥Ö¤Ë¥ê¥ó¥¯¤·¤¿Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤ËŬÍѤµ¤ì¤ë¡£
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
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
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 ¥É¥é¥¤¥Ö¤¬¥¯¥ê¡¼¥Ë¥ó¥°¾ðÊó¤òÊÖ¤µ¤»¤ë¤«¤É¤¦¤«¤Ï¡¢
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 ¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ"
1156 .\"O This request takes an argument of type
1157 .\"O .IR "(struct mtget *)" .
1159 .IR "(struct mtget *)"
1160 ¤È¤¤¤¦·¿¤Î°ú¿ô¤ò¤È¤ë¡£
1164 /* structure for MTIOCGET \- mag tape get status command */
1168 /* the following registers are device dependent */
1172 /* The next two fields are not always used */
1178 .IP \fImt_type\fP 11
1179 .\"O The header file defines many values for
1181 .\"O but the current driver reports only the generic types
1183 .\"O (Generic SCSI-1 tape)
1186 .\"O (Generic SCSI-2 tape).
1187 ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ëÃæ¤Ë¤Ï¿¤¯¤Î
1189 ¤ÎÃͤ¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤¬¡¢¸½¹Ô¤Î¥É¥é¥¤¥Ð¤ÏÈÆÍѤΥ¿¥¤¥×¤Ç¤¢¤ë
1191 (ÈÆÍÑ SCSI-1 ¥Æ¡¼¥×) ¤ª¤è¤Ó
1193 (ÈÆÍÑ SCSI-2 ¥Æ¡¼¥×) ¤Î¤ß¤òÊÖ¤¹¡£
1195 .\"O contains the current tape partition number.
1196 ¸½ºß¤Î¥Æ¡¼¥×°ÌÃÖÈֹ档
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 ,
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
1215 .\"O reports generic (device independent) status information.
1216 .\"O The header file defines macros for testing these status bits:
1217 ÈÆÍѤΠ(¥Ç¥Ð¥¤¥¹¤Ë°Í¸¤·¤Ê¤¤) ¥¹¥Æ¡¼¥¿¥¹¤òÊó¹ð¤¹¤ë¡£
1218 ¤³¤ì¤é¤Î¥¹¥Æ¡¼¥¿¥¹¥Ó¥Ã¥È¤ò¥Æ¥¹¥È¤¹¤ë¤¿¤á¤Î¥Þ¥¯¥í¤¬
1219 ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
1222 \fBGMT_EOF\fP(\fIx\fP):
1223 .\"O The tape is positioned just after a filemark
1224 .\"O (always false after an
1227 ¥Æ¡¼¥×¤Ï¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Îľ¸å¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1231 \fBGMT_BOT\fP(\fIx\fP):
1232 .\"O The tape is positioned at the beginning of the first file (always false
1236 ¥Æ¡¼¥×¤ÏºÇ½é¤Î¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1240 \fBGMT_EOT\fP(\fIx\fP):
1241 .\"O A tape operation has reached the physical End Of Tape.
1242 ¥Æ¡¼¥×Áàºî¤Ï¥Æ¡¼¥×¤ÎʪÍýŪ¤Ê½ªÅÀ¤Ë㤷¤¿¡£
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
1249 ¥Æ¡¼¥×¤Ï¸½ºß¥»¥Ã¥È¥Þ¡¼¥¯¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1253 \fBGMT_EOD\fP(\fIx\fP):
1254 .\"O The tape is positioned at the end of recorded data.
1255 ¥Æ¡¼¥×¤ÏµÏ¿¥Ç¡¼¥¿¤ÎËöÈø¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
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 ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤»ö¤ò°ÕÌ£¤¹¤ë¾ì¹ç¤â¤¢¤ë¡£
1266 \fBGMT_ONLINE\fP(\fIx\fP):
1269 .\"O found the drive with a tape in place and ready for operation.
1272 ¤¬¡¢¥Æ¡¼¥×¤¬Æþ¤Ã¤Æ¤¤¤ÆÁàºî¤Î½àÈ÷¤¬¤Ç¤¤Æ¤¤¤ë¥É¥é¥¤¥Ö¤ò¸¡ÃΤ·¤¿¡£
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 ¸½ºß¤ÎÌ©ÅÙ¤ÎÀßÄê¤òÊó¹ð¤¹¤ë¡£
1281 \fBGMT_DR_OPEN\fP(\fIx\fP):
1282 .\"O The drive does not have a tape in place.
1283 ¥É¥é¥¤¥Ö¤Ë¥Æ¡¼¥×¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¡£
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
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 ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
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 °Ê¹ß¤Ç¼ÂÁõ¤µ¤ì¤¿¡£
1305 .\"O The only field defined in
1307 .\"O is the recovered error count in the low 16 bits (as defined by
1308 .\"O .BR MT_ST_SOFTERR_SHIFT
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).
1315 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥Õ¥£¡¼¥ë¥É¤Ï°ì¤Ä¤À¤±¤Ç¡¢
1316 ²¼°Ì¤Î 16 ¥Ó¥Ã¥È¤¬¥¨¥é¡¼¤ò¥ê¥«¥Ð¡¼¤·¤¿²ó¿ô¤Ç¤¢¤ë
1317 .RB ( MT_ST_SOFTERR_SHIFT
1319 .B MT_ST_SOFTERR_MASK
1321 ¥É¥é¥¤¥Ö¤ÎÊó¹ð¤¹¤ë¥¨¥é¡¼¥ê¥«¥Ð¡¼¿ô¤ÈÌ·½â¤¹¤ë¤³¤È¤¬¤¢¤ë¤Î¤Ç¡¢
1322 ¤³¤Î¿ô¤Ï¤Û¤È¤ó¤É¤Î¾ì¹ç°Ý»ý¤µ¤ì¤Ê¤¤
1323 (¤Û¤È¤ó¤É¤Î¥É¥é¥¤¥Ö¤Ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥½¥Õ¥È¥¨¥é¡¼¤òÊó¹ð¤·¤Ê¤¤¡£
1324 ¤·¤«¤·¤³¤ì¤Ï SCSI MODE SELECT ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÊѹ¹¤Ç¤¤ë)¡£
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
1331 (¥¼¥í¤«¤é¿ô¤¨¤¿) ¸½ºß¤Î¥Õ¥¡¥¤¥ëÈÖ¹æ¤òÊó¹ð¤¹¤ë¡£
1332 ¥Õ¥¡¥¤¥ëÈֹ椬¤ï¤«¤é¤Ê¤¤»þ (Î㤨¤Ð
1336 ¤Î¸å¤Ê¤É) ¤Ë¤Ï \-1 ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
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
1344 ¸½ºß¤Î¥Õ¥¡¥¤¥ëÃæ¤Î(¥¼¥í¤«¤é¿ô¤¨¤¿)¥Ö¥í¥Ã¥¯ÈÖ¹æ¤òÊó¹ð¤¹¤ë¡£
1345 ¥Ö¥í¥Ã¥¯Èֹ椬¤ï¤«¤é¤Ê¤¤»þ (Î㤨¤Ð
1349 ¤Î¸å¤Ê¤É) ¤Ë¤Ï \-1 ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
1351 .\"O .SS "MTIOCPOS \(em Get tape position"
1352 .SS "MTIOCPOS \(em ¥Æ¡¼¥×°ÌÃ֤μèÆÀ"
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
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, ... ).
1367 .I "(struct mtpos *)"
1368 ·¿¤Î°ú¿ô¤ò¤È¤ê¡¢¥É¥é¥¤¥Ö¤¬ÊÝ»ý¤·¤Æ¤¤¤ë¸½ºß¤Î¥Æ¡¼¥×¥Ö¥í¥Ã¥¯ÈÖ¹æ¤òÊó¹ð¤¹¤ë¡£
1376 ¥³¥Þ¥ó¥É (¥Ç¥Ð¥¤¥¹¸ÇÍ¥¢¥É¥ì¥¹)
1377 ¤ò¥µ¥Ý¡¼¥È¤¹¤ë SCSI-2¥É¥é¥¤¥Ö¤«¡¢
1378 Tandberg ¸ß´¹¤Î SCSI-1 ¥É¥é¥¤¥Ö
1379 (Tandberg, Archive, Viper, Wangtek, ... ) ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1383 /* structure for MTIOCPOS \- mag tape get position command */
1385 long mt_blkno; /* current block number */
1389 .\"O .SH "RETURN VALUE"
1394 .\"O An attempt was made to write or erase a write-protected tape.
1395 .\"O (This error is not detected during
1397 ½ñ¤¹þ¤ßÊݸ¤ì¤Æ¤¤¤ë¥Æ¡¼¥×¤Ë½ñ¤¹þ¤ß¤Þ¤¿¤Ï¾Ãµî¤ò¹Ô¤ª¤¦¤È¤·¤¿¡£
1400 Ãæ¤Ë¤Ï¸¡ÃΤµ¤ì¤Ê¤¤¡£)
1403 .\"O The device is already in use or the driver was unable to allocate a
1405 ¥Ç¥Ð¥¤¥¹¤¬¤¹¤Ç¤Ë»È¤ï¤ì¤Æ¤¤¤ë¤«¡¢
1406 ¥É¥é¥¤¥Ð¤¬¥Ð¥Ã¥Õ¥¡¤ò³äÅö¤Æ¤é¤ì¤Ê¤«¤Ã¤¿¡£
1409 .\"O The command parameters point to memory not belonging to the calling
1412 ¸Æ¤Ó¤À¤·¥×¥í¥»¥¹¤Ë°¤·¤Æ¤¤¤Ê¤¤¥á¥â¥ê°ÌÃÖ¤ò»Ø¤·¤Æ¤¤¤ë¡£
1417 .\"O had an invalid argument, or a requested block size was invalid.
1419 ¤Î°ú¿ô¤¬ÉÔÀµ¤Ç¤¢¤ë¤«¡¢Í׵ᤷ¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬ÉÔÀµ¡£
1422 .\"O The requested operation could not be completed.
1423 Í׵ᤵ¤ì¤¿Áàºî¤¬ºÇ¸å¤Þ¤Ç¹Ô¤¨¤Ê¤«¤Ã¤¿¡£
1426 .\"O The byte count in
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.)
1432 ¤Î¥Ð¥¤¥È¿ô¤¬¡¢¥Æ¡¼¥×¤Ë¤¢¤ë¼¡¤ÎʪÍý¥Ö¥í¥Ã¥¯¤è¤ê¾®¤µ¤¤
1433 (2.2.18 ¤ª¤è¤Ó 2.4.0-test6 °ÊÁ°¤Ç¤Ï¡¢ÌۤäÆ;ʬ¤Î¥Ð¥¤¥È¤ò̵»ë¤·¤Æ¤¤¤¿)¡£
1436 .\"O A write operation could not be completed because the tape reached
1438 ¥á¥Ç¥£¥¢¤Î½ªÅÀ¤Ë㤷¤¿¤¿¤á¡¢½ñ¤¹þ¤ßÁàºî¤¬´°Î»¤·¤Ê¤«¤Ã¤¿¡£
1447 .\"O During opening, the tape device does not exist.
1448 ¥ª¡¼¥×¥ó¤¹¤ë»þ¤Ë¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¡£
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 Æɤ߽ñ¤¤·¤è¤¦¤È¤·¤¿¡£
1457 .\"O Open is attempted with
1461 .\"O when the tape in the drive is write-protected.
1462 ¥É¥é¥¤¥Ö¤ËÆþ¤Ã¤Æ¤¤¤ë¥Æ¡¼¥×¤¬¥é¥¤¥È¥×¥í¥Æ¥¯¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¡¢
1466 ¤Ç open ¤ò¹Ô¤ª¤¦¤È¤·¤¿¡£
1471 .\"O the auto-rewind SCSI tape devices
1473 ¼«Æ°´¬¤Ìᤷ¤Î SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¡£
1476 .\"O the nonrewind SCSI tape devices
1478 ´¬¤Ìᤷ¤ò¤·¤Ê¤¤ SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¡£
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.
1486 .\" Dwayne Forsyth ¤Î½ñ¤¤¤¿¥É¥é¥¤¥Ð¤ò¤â¤È¤Ë¤·¤Æ
1487 .\" Kai M\(:akisara (Kai.Makisara@metla.fi) ¤¬½ñ¤¤¤¿¡£
1488 .\" ¾¤Ë¤â²¿¿Í¤«¤Î¿Í¡¹¤¬¤³¤Î¥É¥é¥¤¥Ð¤Ë¹×¸¥¤·¤Æ¤¤¿¡£
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
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
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 Îɤ¤¤«¤â¤·¤ì¤Ê¤¤ (¤Ä¤Þ¤ê¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Î¥â¡¼¥ÉÀßÄê¤Ë
1525 ·çÅÀ¤È¤·¤Æ¤Ï¡¢Èæ³ÓŪÂ礤ʥơ¼¥×¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤òÍѤ¤¤Ê¤±¤ì¤Ð¡¢
1526 SCSI ¥Ð¥¹¾å¤ÇËþ¤Τ¤¤¯Å¾Á÷®ÅÙ¤¬ÆÀ¤é¤ì¤Ê¤¤¤³¤È¤Ç¤¢¤ë¡£
1528 .\"O Many programs (e.g.,
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.
1537 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¥æ¡¼¥¶¤¬¥Ö¥í¥Ã¥¯´ØÏ¢¤ÎÃͤò»ØÄê¤Ç¤¤ë¡£
1538 ¤³¤ÎÃͤˤè¤Ã¤Æ¥Æ¡¼¥×¾å¤ÎʪÍýŪ¤Ê¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò·èÄê¤Ç¤¤ë¤Î¤Ï¡¢
1539 ²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ë¸Â¤é¤ì¤ë¤³¤È¤ËÃí°Õ¡£
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 ¤³¤Î¥Ú¡¼¥¸¤Çµ½Ò¤µ¤ì¤Æ¤¤¤ë¥Æ¡¼¥×¤Î¥µ¥Ý¡¼¥È¤ÏÍøÍѤǤ¤Ê¤¤¡£
1554 .\"O The driver writes error messages to the console/log.
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 ¤¤¤¯¤Ä¤«¤Î¥á¥Ã¥»¡¼¥¸¤Ë½ñ¤¤À¤µ¤ì¤ë¡£
1563 .\"O The driver's internal buffering allows good throughput in fixed-block
1564 .\"O mode also with small
1569 .\"O With direct transfers
1570 .\"O this is not possible and may cause a surprise when moving to the 2.6
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 ¤³¤Î¥É¥é¥¤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤Ï¡¢¸ÇÄê¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ê¤é
1579 ¤Î¥Ð¥¤¥È¿ô¤¬¾®¤µ¤¯¤Æ¤âÎɤ¤¥¹¥ë¡¼¥×¥Ã¥È¤ò½Ð¤¹¡£
1580 ľÀÜžÁ÷¤Ç¤Ï¤³¤ì¤ÏÉÔ²Äǽ¤Ê¤Î¤Ç¡¢2.6 ¥«¡¼¥Í¥ë¤Ë°Ü¹Ô¤·¤¿¤È¤¤Ë¶Ã¤¯¤«¤â¤·¤ì¤Ê¤¤¡£
1581 ²ò·èË¡¤È¤·¤Æ¤Ï¡¢¥½¥Õ¥È¥¦¥§¥¢¤Ë¤è¤êÂ礤ÊžÁ÷¤ò¹Ô¤¦¤è¤¦ÅÁ¤¨¤ë
1582 (¤¿¤¤¤Æ¤¤¤Ï¤è¤êÂ礤ʥ֥í¥Ã¥¯¤ò»È¤ï¤»¤ë) ¤³¤È¤Ç¤¢¤ë¡£
1583 ¤³¤ì¤¬ÉÔ²Äǽ¤Ê¤é¡¢Ä¾ÀÜžÁ÷¤ò̵¸ú¤Ë¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
1586 .\" Copyright \(co 1995 Robert K. Nichols.
1588 .\" Copyright \(co 1999-2005 Kai M\(:akisara.
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.
1599 .\"O .I drivers/scsi/README.st
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
1606 .I drivers/scsi/README.st
1608 .I Documentation/scsi/st.txt
1609 (¥«¡¼¥Í¥ë 2.6 °Ê¹ß) ¤Î³Æ¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢
1610 ¥É¥é¥¤¥Ð¤Ë´Ø¤¹¤ë¤è¤ê¿·¤·¤¤¾ðÊó¤ä¡¢
1611 ¤½¤ÎÀßÄê²Äǽ¤ÊÈϰϤ˴ؤ¹¤ëÆâÍƤ¬´Þ¤Þ¤ì¤Æ¤¤¤ë¡£