OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[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 Last Modified Tue Feb 10 15:09:29 JST 1998
25 .\"     by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
26 .\" Updated Sun Mar 12 2000 by NAKANO Takeo <nakano@st.seikei.ac.jp>
27 .\" Updated Sun Apr 24 2005 by NAKANO Takeo <nakano@st.seikei.ac.jp
28 .\"
29 .TH ST 4  2007-12-16 "Linux" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .\"O st \- SCSI tape device
32 .SH Ì¾Á°
33 st \- SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹
34 .\"O .SH SYNOPSIS
35 .SH ½ñ¼°
36 .nf
37 .B #include <sys/mtio.h>
38 .sp
39 .BI "int ioctl(int " fd ", int " request " [, (void *)" arg3 "]);"
40 .BI "int ioctl(int " fd ", MTIOCTOP, (struct mtop *)" mt_cmd );
41 .BI "int ioctl(int " fd ", MTIOCGET, (struct mtget *)" mt_status );
42 .BI "int ioctl(int " fd ", MTIOCPOS, (struct mtpos *)" mt_pos );
43 .fi
44 .\"O .SH DESCRIPTION
45 .SH ÀâÌÀ
46 .\"O The
47 .\"O .B st
48 .\"O driver provides the interface to a variety of SCSI tape devices.
49 .\"O Currently, the driver takes control of all detected devices of type
50 .\"O \(lqsequential-access\(rq.
51 .\"O The
52 .\"O .B st
53 .\"O driver uses major device number 9.
54 .B st
55 ¥É¥é¥¤¥Ð¡¼¤ÏÍÍ¡¹¤Ê SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Î¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤òÄ󶡤¹¤ë¡£
56 ¸½ºß¤Ç¤Ï¡¢¥É¥é¥¤¥Ð¡¼¤Ï¸¡½Ð¤µ¤ì¤¿Á´¤Æ¤Î
57 \(lq¥·¡¼¥±¥ó¥·¥ã¥ë¥¢¥¯¥»¥¹ (sequential-access) \(rq ¥¿¥¤¥×¤Î¥Ç¥Ð¥¤¥¹¤Ø¤Î
58 À©¸æ¤ò¹Ô¤¦¡£
59 .B st
60 ¥É¥é¥¤¥Ð¡¼¤Ï¥á¥¸¥ã¡¼¥Ç¥Ð¥¤¥¹ÈÖ¹æ 9 ¤òÍѤ¤¤ë¡£
61 .PP
62 .\"O Each device uses eight minor device numbers.
63 .\"O The lowermost five bits
64 .\"O in the minor numbers are assigned sequentially in the order of
65 .\"O detection.
66 .\"O In the 2.6 kernel, the bits above the eight lowermost bits are
67 .\"O concatenated to the five lowermost bits to form the tape number.
68 .\"O The minor numbers can be grouped into
69 .\"O two sets of four numbers: the principal (auto-rewind) minor device numbers,
70 .\"O .IR n ,
71 .\"O and the \(lqno-rewind\(rq device numbers,
72 .\"O .RI ( n " + 128)."
73 .\"O Devices opened using the principal device number will be sent a
74 .\"O .BR REWIND
75 .\"O command when they are closed.
76 .\"O Devices opened using the \(lqno-rewind\(rq device number will not.
77 .\"O (Note that using an auto-rewind device for positioning the tape with,
78 .\"O for instance, mt does not lead to the desired result: the tape is
79 .\"O rewound after the mt command and the next command starts from the
80 .\"O beginning of the tape).
81 ¤½¤ì¤¾¤ì¤Î¥Ç¥Ð¥¤¥¹¤Ï 8 ¤Ä¤Î¥Þ¥¤¥Ê¡¼¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤ò»È¤¦¡£
82 ¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤ÎÄã°Ì¦¤Î 5 ¥Ó¥Ã¥È¤Ï¡¢¸¡½Ð¤µ¤ì¤¿½ç¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë¡£
83 ¥«¡¼¥Í¥ë 2.6 ¤Ç¤Ï¡¢
84 Äã°Ì¦ 8 ¥Ó¥Ã¥È¤è¤ê¤â¾å°Ì¤Ë¤¢¤ë¥Ó¥Ã¥È·²¤¬¤³¤Î 5 ¥Ó¥Ã¥È¤ËÏ¢·ë (concatenate)
85 ¤µ¤ì¡¢¥Æ¡¼¥ÖÈÖ¹æ¤È¤Ê¤ë¡£
86 ¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤Ï¡¢¤½¤ì¤¾¤ì 4 ¤Ä¤Î¿ô»ú¤«¤é¤Ê¤ëÆó¤Ä¤Î¥»¥Ã¥È¤Ë
87 ¥°¥ë¡¼¥×ʬ¤±¤µ¤ì¤ë¡£
88 ´ðËÜ (¼«Æ°´¬¤­Ìᤷ) ¥Ç¥Ð¥¤¥¹ÈÖ¹æ
89 .IR n ¡¢
90 ¤ª¤è¤Ó \(lqÈ󴬤­Ìᤷ (no-rewind) \(rq ¥Ç¥Ð¥¤¥¹ÈÖ¹æ
91 .RI ( n " + 128)."
92 ¤Ç¤¢¤ë¡£
93 ´ðËܥǥХ¤¥¹ÈÖ¹æ¤òÍѤ¤¤Æ¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Ë¤Ï¡¢
94 ¥¯¥í¡¼¥º¤¹¤ë»þ¤Ë
95 .B REWIND
96 ¥³¥Þ¥ó¥É¤¬Á÷¤é¤ì¤ë¡£
97 \(lqÈ󴬤­Ìᤷ\(rq ¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤òÍѤ¤¤Æ¥ª¡¼¥×¥ó¤µ¤ì¤¿¾ì¹ç¤Ï
98 \s-1REWIND\s+1 ¥³¥Þ¥ó¥É¤ÏÁ÷¤é¤ì¤Ê¤¤
99 (¼«Æ°´¬¤­Ìᤷ¥Ç¥Ð¥¤¥¹¤ò¥Æ¡¼¥×¤Î°ÌÃÖ·è¤á¤Ë (Î㤨¤Ð mt ¤Ç) ÍѤ¤¤Æ¤â¡¢
100 ˾¤à·ë²Ì¤ÏÆÀ¤é¤ì¤Ê¤¤¡£¥Æ¡¼¥×¤Ï mt ¥³¥Þ¥ó¥É¤Î¸å¤Ç´¬¤­Ìᤵ¤ì¡¢
101 ¼¡¤Î¥³¥Þ¥ó¥É¤Ï¥Æ¡¼¥×¤ÎÀèƬ¤«¤é»Ï¤Þ¤Ã¤Æ¤·¤Þ¤¦)¡£
102 .PP
103 .\"O Within each group, four minor numbers are available to define
104 .\"O devices with different characteristics (block size, compression,
105 .\"O density, etc.)
106 .\"O When the system starts up, only the first device is
107 .\"O available.
108 .\"O The other three are activated when the default
109 .\"O characteristics are defined (see below).
110 .\"O (By changing compile-time
111 .\"O constants, it is possible to change the balance between the maximum
112 .\"O number of tape drives and the number of minor numbers for each
113 .\"O drive.
114 .\"O The default allocation allows control of 32 tape drives.
115 .\"O For instance, it is possible to control up to 64 tape drives
116 .\"O with two minor numbers for different options.)
117 ¤½¤ì¤¾¤ì¤Î¥°¥ë¡¼¥×¤Ç¡¢°Û¤Ê¤Ã¤¿ÆÃÀ­ (¥Ö¥í¥Ã¥¯¥µ¥¤¥º¡¦°µ½Ì¡¦
118 Ì©Å٤ʤÉ) ¤Î¥Ç¥Ð¥¤¥¹¤òÄêµÁ¤¹¤ë¤¿¤á¤Ë 4 ¤Ä¤Î¥Þ¥¤¥Ê¡¼Èֹ椬ÍøÍѤǤ­¤ë¡£
119 ¥·¥¹¥Æ¥à¤¬µ¯Æ°¤·¤¿¤È¤­¤Ë¤Ï¡¢ºÇ½é¤Î¥Ç¥Ð¥¤¥¹¤À¤±¤¬»È¤¨¤ë¡£
120 ¾¤Î 3 ¤Ä¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÆÃÀ­¤¬ÄêµÁ¤µ¤ì¤Æ½é¤á¤Æ»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ë (¸å½Ò)¡£
121 (¥³¥ó¥Ñ¥¤¥ë»þ¤ÎÄê¿ô¤òÊѹ¹¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ÎºÇÂç¿ô¤È¡¢
122 ¤½¤ì¤¾¤ì¤Î¥É¥é¥¤¥Ö¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤Î¸Ä¿ô¤È¤òÄ´À°¤Ç¤­¤ë¡£
123 ¥Ç¥Õ¥©¥ë¥È¤Î³ä¤êÅö¤Æ¤Ç¤Ï 32 Âæ¤Þ¤Ç¤Î¥Æ¡¼¥×¥É¥é¥¤¥Ö¤òÀ©¸æ¤Ç¤­¤ë¡£
124 Î㤨¤Ð 64 Âæ¤Þ¤Ç¤Î¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ò¡¢°Û¤Ê¤Ã¤¿¥ª¥×¥·¥ç¥ó¤ò»ý¤Ä
125 Æó¤Ä¤Î¥Þ¥¤¥Ê¡¼ÈÖ¹æ¤ÇÀ©¸æ¤¹¤ë¤è¤¦¤Ë¤â¤Ç¤­¤ë¡£)
126 .PP
127 .\"O Devices are typically created by:
128 ¥Ç¥Ð¥¤¥¹¤ÏÉáÄ̼¡¤Î¤è¤¦¤Ëºî¤é¤ì¤ë:
129 .in +4n
130 .nf
131
132 mknod \-m 666 /dev/st0 c 9 0
133 mknod \-m 666 /dev/st0l c 9 32
134 mknod \-m 666 /dev/st0m c 9 64
135 mknod \-m 666 /dev/st0a c 9 96
136 mknod \-m 666 /dev/nst0 c 9 128
137 mknod \-m 666 /dev/nst0l c 9 160
138 mknod \-m 666 /dev/nst0m c 9 192
139 mknod \-m 666 /dev/nst0a c 9 224
140 .fi
141 .in
142 .PP
143 .\"O There is no corresponding block device.
144 ¤³¤ì¤é¤Ë¤ÏÂбþ¤¹¤ë¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤Ï¸ºß¤·¤Ê¤¤¡£
145 .PP
146 .\"O The driver uses an internal buffer that has to be large enough to hold
147 .\"O at least one tape block.
148 .\"O In kernels before 2.1.121, the buffer is
149 .\"O allocated as one contiguous block.
150 .\"O This limits the block size to the
151 .\"O largest contiguous block of memory the kernel allocator can provide.
152 .\"O The limit is currently 128 kB for 32-bit architectures and
153 .\"O 256 kB for 64-bit architectures.
154 .\"O In newer kernels the driver
155 .\"O allocates the buffer in several parts if necessary.
156 .\"O By default, the
157 .\"O maximum number of parts is 16.
158 .\"O This means that the maximum block size
159 .\"O is very large (2 MB if allocation of 16 blocks of 128 kB succeeds).
160 ¥É¥é¥¤¥Ð¤ÏÆâÉô¥Ð¥Ã¥Õ¥¡¤ò»È¤¤¡¢¤½¤ÎÂ礭¤µ¤Ï¾¯¤Ê¤¯¤È¤â¥Æ¡¼¥×¤Î
161 1 ¥Ö¥í¥Ã¥¯¤òÊÝ»ý¤Ç¤­¤ë¤è¤¦¤Ë¼è¤é¤ì¤ë¡£ 2.1.121 °ÊÁ°¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
162 ¥Ð¥Ã¥Õ¥¡¤ÏϢ³¤¹¤ë°ì¤Ä¤Î¥Ö¥í¥Ã¥¯¤È¤·¤Æ³ä¤êÅö¤Æ¤é¤ì¤ë¡£¤³¤ÎÊýË¡¤À¤È¡¢
163 ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎºÇÂçÃͤϥ«¡¼¥Í¥ë¤Î³ä¤êÅö¤Æ²Äǽ¤ÊϢ³¥á¥â¥ê¥Ö¥í¥Ã¥¯¤Ë
164 À©¸Â¤µ¤ì¤ë¡£¤³¤ÎÀ©¸Â¤Ï 32 ¥Ó¥Ã¥È¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ç¤Ï 128 kB¡¢
165 64 ¥Ó¥Ã¥È¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ç¤Ï 256 kB ¤Ç¤¢¤ë¡£¤³¤ì°Ê¹ß¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
166 ¥É¥é¥¤¥Ð¤ÏɬÍפ˱þ¤¸¤Æ¤¤¤¯¤Ä¤«¤Ë¤ï¤«¤ì¤¿¥Ð¥Ã¥Õ¥¡¤ò³ä¤êÅö¤Æ¤ë¡£
167 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 16 ¸Ä¤Þ¤Ç¤ÎÉôʬ¤Ëʬ³ä¤Ç¤­¤ë¡£¤¹¤Ê¤ï¤Á
168 ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎºÇÂçÃͤÏÈó¾ï¤ËÂ礭¤¤ (128 kB ¤Î¥Ö¥í¥Ã¥¯ 16 ¸Ä¤Î
169 ³ä¤êÅö¤Æ¤ËÀ®¸ù¤¹¤ì¤Ð 2 MB ¤È¤Ê¤ë)¡£
170 .PP
171 .\"O The driver's internal buffer size is determined by a compile-time
172 .\"O constant which can be overridden with a kernel startup option.
173 .\"O In addition to this, the driver tries to allocate a larger temporary
174 .\"O buffer at run time if necessary.
175 .\"O However, run-time allocation of large
176 .\"O contiguous blocks of memory may fail and it is advisable not to rely
177 .\"O too much on dynamic buffer allocation with kernels older than 2.1.121
178 .\"O (this applies also to demand-loading the driver with kerneld or kmod).
179 ¥É¥é¥¤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤Î¥µ¥¤¥º¤Ï¥³¥ó¥Ñ¥¤¥ë»þ¤ÎÄê¿ô¤ÇÄêµÁ¤µ¤ì¤ë¡£
180 ¤³¤ì¤Ï¥«¡¼¥Í¥ë¤Îµ¯Æ°»þ¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¾å½ñ¤­²Äǽ¤Ç¤¢¤ë¡£
181 ¤µ¤é¤Ë¥É¥é¥¤¥Ð¤Ï¼Â¹Ô»þ¤Ë¤â¡¢É¬Íפ˱þ¤¸¤Æ¤è¤êÂ礭¤Ê°ì»þ¥Ð¥Ã¥Õ¥¡¤ò
182 ³ä¤êÅö¤Æ¤è¤¦¤È¤¹¤ë¡£¤·¤«¤·¼Â¹Ô»þ¤ËÂ礭¤ÊϢ³¥á¥â¥ê¥Ö¥í¥Ã¥¯¤ò
183 ³ä¤êÅö¤Æ¤è¤¦¤È¤¹¤ë¤È¼ºÇÔ¤¹¤ë¤³¤È¤¬¤¢¤ë¤Î¤Ç¡¢ 2.1.121
184 °ÊÁ°¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢Æ°Åª¤Ê¥Ð¥Ã¥Õ¥¡³ä¤êÅö¤Æ¤Ï¤¢¤Þ¤ê¤¢¤Æ¤Ë¤·¤Ê¤¤¤Û¤¦¤¬Îɤ¤
185 (¤³¤ì¤Ï kerneld ¤ä kmod ¤Ë¤è¤ë¥É¥é¥¤¥Ð¤Î¥Ç¥Þ¥ó¥É¥í¡¼¥É¤Ë´Ø¤·¤Æ¤âÅö¤Æ¤Ï¤Þ¤ë)¡£
186 .PP
187 .\"O The driver does not specifically support any tape drive brand or
188 .\"O model.
189 .\"O After system start-up the tape device options are defined by
190 .\"O the drive firmware.
191 .\"O For example, if the drive firmware selects fixed-block mode,
192 .\"O the tape device uses fixed-block mode.
193 .\"O The options can
194 .\"O be changed with explicit
195 .\"O .BR ioctl (2)
196 .\"O calls and remain in effect when the device is closed and reopened.
197 .\"O Setting the options affects both the auto-rewind and the nonrewind
198 .\"O device.
199 ¥É¥é¥¤¥Ð¤Ï¥É¥é¥¤¥Ö¤Î¥á¡¼¥«¤ä¥â¥Ç¥ë¤òÆÃÄꤷ¤Æ¥µ¥Ý¡¼¥È¤¹¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
200 ¥·¥¹¥Æ¥à¤¬µ¯Æ°¤¹¤ë¤È¡¢¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Î¥ª¥×¥·¥ç¥ó¤¬¥É¥é¥¤¥Ö¤Î
201 ¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë¡£Î㤨¤Ð¡¢
202 ¥É¥é¥¤¥Ö¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤¬¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤òÁªÂò¤¹¤ì¤Ð¡¢
203 ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Ï¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤ò»È¤¦¤³¤È¤Ë¤Ê¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï
204 .BR ioctl (2)
205 ¥³¡¼¥ë¤òÌÀ¼¨Åª¤Ë»È¤¨¤ÐÊѹ¹¤Ç¤­¡¢
206 ¤½¤ÎÊѹ¹¤Ï¥Ç¥Ð¥¤¥¹¤¬¥¯¥í¡¼¥º¤µ¤ì¤ÆºÆ¤Ó¥ª¡¼¥×¥ó¤µ¤ì¤¿¤È¤­¤â»Ä¤ë¡£
207 .\"nakano: µÕ¤«¡©
208 ¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Ï¡¢
209 ¼«Æ°´¬¤­Ìᤷ¥Ç¥Ð¥¤¥¹¤ÈÈ󴬤­Ìᤷ¥Ç¥Ð¥¤¥¹¤ÎξÊý¤Ë±Æ¶Á¤¹¤ë¡£
210 .PP
211 .\"O Different options can be specified for the different devices within
212 .\"O the subgroup of four.
213 .\"O The options take effect when the device is
214 .\"O opened.
215 .\"O For example, the system administrator can define
216 .\"O one device that writes in fixed-block mode with a certain block size,
217 .\"O and one which writes in variable-block mode (if the drive supports
218 .\"O both modes).
219 4 ¤Ä¤Î¥µ¥Ö¥°¥ë¡¼¥×¤½¤ì¤¾¤ì¤Î¥Ç¥Ð¥¤¥¹¤ËÂФ·¤Æ°Û¤Ê¤ë¥ª¥×¥·¥ç¥ó¤ò
220 Í¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¥ª¥×¥·¥ç¥ó¤Ï¥Ç¥Ð¥¤¥¹¤¬¥ª¡¼¥×¥ó¤µ¤ì¤¿¤È¤­¤Ë
221 ¸úÎϤòȯ´ø¤¹¤ë¡£Î㤨¤Ð¡¢¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Ï¤¢¤ë¥Ç¥Ð¥¤¥¹¤ò
222 ŬÅö¤Ê¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Î¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç½ñ¤­¹þ¤à¤è¤¦¤ËÄêµÁ¤·¡¢
223 Ê̤ΥǥХ¤¥¹¤ò²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç½ñ¤­¹þ¤à¤è¤¦¤Ë¤Ç¤­¤ë (¥É¥é¥¤¥Ö¤¬
224 ξÊý¤Î¥â¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð)¡£
225 .PP
226 .\"O The driver supports
227 .\"O .B tape partitions
228 .\"O if they are supported by the drive.
229 .\"O (Note that the tape partitions
230 .\"O have nothing to do with disk partitions.
231 .\"O A partitioned tape can be
232 .\"O seen as several logical tapes within one medium.)
233 .\"O Partition support has to be enabled with an
234 .\"O .BR ioctl (2).
235 .\"O The tape
236 .\"O location is preserved within each partition across partition changes.
237 .\"O The partition used for subsequent tape operations is
238 .\"O selected with an
239 .\"O .BR ioctl (2).
240 .\"O The partition switch is executed together with
241 .\"O the next tape operation in order to avoid unnecessary tape
242 .\"O movement.
243 .\"O The maximum number of partitions on a tape is defined by a
244 .\"O compile-time constant (originally four).
245 .\"O The driver contains an
246 .\"O .BR ioctl (2)
247 .\"O that can format a tape with either one or two partitions.
248 ¤³¤Î¥É¥é¥¤¥Ð¤Ï¡¢
249 .B ¥Æ¡¼¥×¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó
250 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë (¥É¥é¥¤¥Ö¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç)¡£
251 (¥Æ¡¼¥×¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ï¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¤Ï¤Ê¤ó¤Î´Ø·¸¤â¤Ê¤¤¡£
252 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó²½¤µ¤ì¤¿¥Æ¡¼¥×¤Ï¡¢°ì¤Ä¤Î¥á¥Ç¥£¥¢¤ËÊ£¿ô¤ÎÏÀÍý¥Æ¡¼¥×¤¬
253 ¸ºß¤¹¤ë¤«¤Î¤è¤¦¤Ë¸«¤¨¤ë¡£)
254 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥Ý¡¼¥È¤Ï
255 .BR ioctl (2)
256 ¤Ë¤è¤Ã¤ÆÍ­¸ú¤Ë¤Ç¤­¤ë¡£
257 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬Êѹ¹¤µ¤ì¤ë¤È¡¢
258 ¥Æ¡¼¥×¤Î°ÌÃ֤Ϥ½¤ì¤¾¤ì¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥óÆâÉô¤ÇÊݸ¤µ¤ì¤ë¡£
259 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎÁªÂò¤Ï
260 .BR ioctl (2)
261 ¤Ç¹Ô¤¦¡£
262 ¤½¤ì°Ê¹ß¤Î¥Æ¡¼¥×Áàºî¤ÎÂоݤϡ¢¤½¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¤Ê¤ë¡£
263 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎÀÚ¤êÂؤ¨¤Ï¡¢¼¡¤Î¥Æ¡¼¥×Áàºî¤ÈƱ»þ¤Ë¹Ô¤ï¤ì¡¢
264 ÉÔɬÍפʥơ¼¥×°ÜÆ°¤ò¤·¤Ê¤¯¤Æ¤¹¤à¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
265 °ì¤Ä¤Î¥Æ¡¼¥×¤Ë¤ª¤±¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎºÇÂç¿ô¤Ï
266 ¥³¥ó¥Ñ¥¤¥ë»þ¤ÎÄê¿ô¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë (Ä̾ï¤Ï 4)¡£
267 ¥É¥é¥¤¥Ð¤Ë¤Ï¡¢¥Æ¡¼¥×¤Î 1 ¤Ä¤Þ¤¿¤Ï
268 2 ¤Ä¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤­¤ë¤è¤¦¤Ê
269 .BR ioctl (2)
270 ¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¡£
271 .PP
272 .\"O Device
273 .\"O .I /dev/tape
274 .\"O is usually created as a hard or soft link to the default tape device
275 .\"O on the system.
276 Ä̾¥·¥¹¥Æ¥à¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤ËÂФ¹¤ë¥Ï¡¼¥É¥ê¥ó¥¯
277 ¤Þ¤¿¤Ï¥½¥Õ¥È¥ê¥ó¥¯¤È¤·¤Æ¡¢¥Ç¥Ð¥¤¥¹
278 .I /dev/tape
279 ¤¬ºîÀ®¤µ¤ì¤ë¡£
280 .PP
281 .\"O Starting from kernel 2.6.2, the driver exports in the sysfs directory
282 .\"O .I /sys/class/scsi_tape
283 .\"O the attached devices and some parameters assigned to the devices.
284 ¥«¡¼¥Í¥ë 2.6.2 °Ê¹ß¤Ç¤Ï¡¢¤³¤Î¥É¥é¥¤¥Ð¤Ï sysfs ¥Ç¥£¥ì¥¯¥È¥ê
285 .I /sys/class/scsi_tape
286 ¤Ë¡¢¥¢¥¿¥Ã¥Á¤·¤¿¥Ç¥Ð¥¤¥¹¤È¤½¤Î¥Ç¥Ð¥¤¥¹¤Ë³äÅö¤Æ¤¿¥Ñ¥é¥á¡¼¥¿¤ò¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ë¡£
287 .\"O .SS "Data Transfer"
288 .SS ¥Ç¡¼¥¿Å¾Á÷
289 .\"O The driver supports operation in both fixed-block mode and
290 .\"O variable-block mode (if supported by the drive).
291 .\"O In fixed-block mode the drive
292 .\"O writes blocks of the specified size and the block size is not
293 .\"O dependent on the byte counts of the write system calls.
294 .\"O In variable-block mode one tape block is written for each write call
295 .\"O and the byte
296 .\"O count determines the size of the corresponding tape block.
297 .\"O Note that
298 .\"O the blocks on the tape don't contain any information about the
299 .\"O writing mode: when reading, the only important thing is to use
300 .\"O commands that accept the block sizes on the tape.
301 ¤³¤Î¥É¥é¥¤¥Ð¤Ï¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤È²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Î
302 ξÊý¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë (¥É¥é¥¤¥Ö¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð)¡£
303 ¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç¤Ï¡¢¥É¥é¥¤¥Ö¤Ï·è¤Þ¤Ã¤¿¥µ¥¤¥º¤Î¥Ö¥í¥Ã¥¯¤ò
304 (Ê£¿ô¸Ä) ½ñ¤­¹þ¤à¡£¤³¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Ï
305 write ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¥Ð¥¤¥È¿ô¤Ë¤è¤é¤Ê¤¤¡£
306 ²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç¤Ï¡¢
307 write ¥³¡¼¥ë¤´¤È¤Ë°ì¤Ä¤Î¥Æ¡¼¥×¥Ö¥í¥Ã¥¯¤Ë½ñ¤­¹þ¤ß¤¬¹Ô¤ï¤ì¤ë¡£
308 ¤·¤¿¤¬¤Ã¤Æ¥Ð¥¤¥È¿ô¤¬Âбþ¤¹¤ë¥Æ¡¼¥×¥Ö¥í¥Ã¥¯¤Î¥µ¥¤¥º¤ò·è¤á¤ë¡£
309 ¥Æ¡¼¥×¾å¤Î¥Ö¥í¥Ã¥¯¤Ë¤Ï¡¢½ñ¤­¹þ¤ß¥â¡¼¥É¤Î¾ðÊó¤Ï°ìÀÚ´Þ¤Þ¤ì¤Ê¤¤¡£
310 Æɤ߹þ¤ß¤Î¤È¤­¤Ë½ÅÍפʤ³¤È¤Ï¡¢¥Æ¡¼¥×¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¼õ¤±Æþ¤ì¤ë
311 ¥³¥Þ¥ó¥É¤ò»È¤¦¤«¤É¤¦¤«¤À¤±¤Ç¤¢¤ë¡£
312 .PP
313 .\"O In variable-block mode the read byte count does not have to match
314 .\"O the tape block size exactly.
315 .\"O If the byte count is larger than the
316 .\"O next block on tape, the driver returns the data and the function
317 .\"O returns the actual block size.
318 .\"O If the block size is larger than the
319 .\"O byte count, the requested amount of data from the start of the block
320 .\"O is returned and the rest of the block is discarded.
321 ²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç¤Ï¡¢Æɤ߹þ¤ß¥Ð¥¤¥È¿ô¤Ï¥Æ¡¼¥×¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤È
322 ɬ¤º¤·¤â°ìÃפ·¤Æ¤¤¤Ê¤¯¤Æ¤âÎɤ¤¡£¥Ð¥¤¥È¿ô¤¬¥Æ¡¼¥×¤Î¼¡¤Î¥Ö¥í¥Ã¥¯¤è¤ê¤â
323 Â礭¤±¤ì¤Ð¡¢¥É¥é¥¤¥Ð¤Ï¤½¤Î¥Ç¡¼¥¿¤òÊÖ¤·¡¢´Ø¿ô¤Ï¼ÂºÝ¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤òÊÖ¤¹¡£
324 ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬¥Ð¥¤¥È¿ô¤è¤ê¤âÂ礭¤±¤ì¤Ð¡¢Í׵ᤵ¤ì¤¿Ê¬¤Î¥Ç¡¼¥¿¤¬
325 ¥Ö¥í¥Ã¥¯¤ÎÀèƬ¤«¤éÆɤ߹þ¤Þ¤ì¤ÆÊÖ¤µ¤ì¡¢¥Ö¥í¥Ã¥¯¤Î»Ä¤ê¤ÏÇË´þ¤µ¤ì¤ë¡£
326 .PP
327 .\"O In fixed-block mode the read byte counts can be arbitrary if
328 .\"O buffering is enabled, or a multiple of the tape block size if
329 .\"O buffering is disabled.
330 .\"O Kernels before 2.1.121 allow writes with
331 .\"O arbitrary byte count if buffering is enabled.
332 .\"O In all other cases
333 .\"O (kernel before 2.1.121 with buffering disabled or newer kernel) the
334 .\"O write byte count must be a multiple of the tape block size.
335 ¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç¤Ï¡¢¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤¬Í­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ì¤Ð
336 Æɤ߹þ¤ß¥Ð¥¤¥È¿ô¤ÏǤ°Õ¤ÎÂ礭¤µ¤Ç¤è¤¤¡£¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤¬Ìµ¸ú¤Î¾ì¹ç¤Ï¡¢
337 ¥Æ¡¼¥×¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎÀ°¿ôÇܤǤʤ±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ 2.1.121 °ÊÁ°¤Î
338 ¥«¡¼¥Í¥ë¤Ç¤Ï¡¢¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤¬Í­¸ú¤Ê¾ì¹ç¤Ë¤Ï
339 Ǥ°Õ¤Î¥Ð¥¤¥È¿ô¤Î½ñ¤­¹þ¤ß¤¬¤Ç¤­¤ë¡£¤½¤Î¾¤Î¾ì¹ç¤¹¤Ù¤Æ
340 (2.1.121 °ÊÁ°¤Î¥«¡¼¥Í¥ë¤Ç¥Ð¥Ã¥Õ¥¡¤¬Ìµ¸ú¤Ê¾ì¹ç¤È¡¢¿·¤·¤¤¥«¡¼¥Í¥ë¤Î¾ì¹ç)
341 ¤Ç¤Ï¡¢½ñ¤­¹þ¤ß¥Ð¥¤¥È¿ô¤Ï¥Æ¡¼¥×¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎÀ°¿ôÇܤǤʤ±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
342 .PP
343 .\"O In the 2.6 kernel, the driver tries to use direct transfers between the user
344 .\"O buffer and the device.
345 .\"O If this is not possible, the driver's internal buffer
346 .\"O is used.
347 .\"O The reasons for not using direct transfers include improper alignment
348 .\"O of the user buffer (default is 512 bytes but this can be changed by the HBA
349 .\"O driver), one of more pages of the user buffer not reachable by the
350 .\"O SCSI adapter, etc.
351 2.6 ¥«¡¼¥Í¥ë¤Ç¤Ï¡¢¤³¤Î¥É¥é¥¤¥Ð¤Ï¥æ¡¼¥¶¥Ð¥Ã¥Õ¥¡¤È¥Ç¥Ð¥¤¥¹´Ö¤Ç¡¢
352 ¥Ç¡¼¥¿¤ÎľÀÜžÁ÷ (direct transfer) ¤ò»î¤ß¤ë¡£
353 ¤³¤ì¤¬ÉÔ²Äǽ¤Ê¾ì¹ç¤Ï¡¢¥É¥é¥¤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤òÍѤ¤¤ë¡£
354 ľÀÜžÁ÷¤¬¤Ç¤­¤Ê¤¤Íýͳ¤È¤·¤Æ¤Ï¡¢¥æ¡¼¥¶¥Ð¥Ã¥Õ¥¡¤Î¥¢¥é¥¤¥ó¥á¥ó¥È¤¬Å¬ÀڤǤʤ¤
355 (¥Ç¥Õ¥©¥ë¥È¤Ï 512 ¥Ð¥¤¥È¤À¤¬ HBA ¥É¥é¥¤¥Ð¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ë)¡¢
356 ¥æ¡¼¥¶¥Ð¥Ã¥Õ¥¡¤Î¥Ú¡¼¥¸¤Î¤É¤ì¤«¤¬ SCSI ¥¢¥À¥×¥¿¤«¤é¸«¤¨¤Ê¤¤¡¢
357 ¤Ê¤É¤¬¹Í¤¨¤é¤ì¤ë¡£
358 .PP
359 .\"O A filemark is automatically written to tape if the last tape operation
360 .\"O before close was a write.
361 ¥Æ¡¼¥×¤ò¥¯¥í¡¼¥º¤¹¤ëľÁ°¤Î¥Æ¡¼¥×ÁàºîÌ¿Î᤬½ñ¤­¹þ¤ß¤Ç¤¢¤ì¤Ð¡¢
362 ¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬¼«Æ°Åª¤Ë¥Æ¡¼¥×¤Ø½ñ¤­¹þ¤Þ¤ì¤ë¡£
363 .PP
364 .\"O When a filemark is encountered while reading, the following
365 .\"O happens.
366 .\"O If there are data remaining in the buffer when the filemark
367 .\"O is found, the buffered data is returned.
368 .\"O The next read returns zero
369 .\"O bytes.
370 .\"O The following read returns data from the next file.
371 .\"O The end of
372 .\"O recorded data is signaled by returning zero bytes for two consecutive
373 .\"O read calls.
374 .\"O The third read returns an error.
375 Æɤ߹þ¤ß»þ¤Ë¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Ë½Ð²ñ¤¦¤È¡¢°Ê²¼¤¬¼Â¹Ô¤µ¤ì¤ë¡£
376 ¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬¸«ÉÕ¤«¤Ã¤¿¤È¤­¤Ë¥Ð¥Ã¥Õ¥¡¤Ë¥Ç¡¼¥¿¤¬»Ä¤Ã¤Æ¤¤¤ë¤È¡¢
377 ¥Ð¥Ã¥Õ¥¡¤Î¥Ç¡¼¥¿¤¬ÊÖ¤µ¤ì¤ë¡£¼¡¤ÎÆɤ߹þ¤ßÁàºî¤Ï 0 ¥Ð¥¤¥È¤òÊÖ¤¹¡£
378 ¤½¤Î¼¡¤ÎÆɤ߹þ¤ß¤Ï¼¡¤Î¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿¤òÊÖ¤¹¡£
379 µ­Ï¿¥Ç¡¼¥¿¤ÎËöÈø¤Ï¡¢Æɤ߹þ¤ßÁàºî¤¬Æó²ó³¤±¤Æ
380 0 ¥Ð¥¤¥È¤òÊÖ¤·¤ÆÍè¤ë¤«¤¿¤Á¤ÇÄÌÃΤµ¤ì¤ë¡£»°²óÌܤÎÆɤ߹þ¤ß¤Ï¥¨¥é¡¼¤òÊÖ¤¹¡£
381 .\"O .SS Ioctls
382 .SS ioctl
383 .\"O The driver supports three
384 .\"O .BR ioctl (2)
385 .\"O requests.
386 .\"O Requests not recognized by the
387 .\"O .B st
388 .\"O driver are passed to the
389 .\"O .B SCSI
390 .\"O driver.
391 .\"O The definitions below are from
392 .\"O .IR /usr/include/linux/mtio.h :
393 ¥É¥é¥¤¥Ð¤Ï 3 ¤Ä¤Î
394 .BR ioctl (2)
395 Í×µá¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¡£
396 .B st
397 ¥É¥é¥¤¥Ð¤Ë¤è¤Ã¤Æǧ¼±¤µ¤ì¤Ê¤«¤Ã¤¿Í×µá¤Ï
398 .B SCSI
399 ¥É¥é¥¤¥Ð¤Ë¤ï¤¿¤µ¤ì¤ë¡£
400 °Ê²¼¤ÎÄêµÁ¤Ï
401 .I /usr/include/linux/mtio.h
402 ¤Ë¤è¤ë¡£
403 .\"O .SS "MTIOCTOP \(em Perform a tape operation"
404 .SS "MTIOCTOP \(em ¥Æ¡¼¥×Áàºî¤Î¼Â¹Ô"
405 .PP
406 .\"O This request takes an argument of type
407 .\"O .IR "(struct mtop *)" .
408 .\"O Not all drives support all operations.
409 .\"O The driver returns an
410 .\"O .B EIO
411 .\"O error if the drive rejects an operation.
412 ¤³¤ÎÍ×µá¤Ï
413 .I "(struct mtop *)"
414 ·¿¤Î°ú¿ô¤ò¤È¤ë¡£Á´¤Æ¤Î¥É¥é¥¤¥Ö¤¬Á´¤Æ¤ÎÁàºî¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
415 ¥É¥é¥¤¥Ö¤¬Áàºî¤òµñÈݤ¹¤ë¤È¡¢¥É¥é¥¤¥Ð¤Ï
416 .B EIO
417 ¥¨¥é¡¼¤òÊÖ¤¹¡£
418 .PP
419 .in +4n
420 .nf
421 /* Structure for MTIOCTOP \- mag tape op command: */
422 struct mtop {
423     short   mt_op;       /* operations defined below */
424     int     mt_count;    /* how many of them */
425 };
426 .fi
427 .in
428 .PP
429 .\"O Magnetic Tape operations for normal tape use:
430 Ä̾ï¤Î¥Æ¡¼¥×ÍøÍѤΤ¿¤á¤Î¼§µ¤¥Æ¡¼¥×Áàºî:
431 .TP 14
432 .B MTBSF
433 .\"O Backward space over
434 .\"O .I mt_count
435 .\"O filemarks.
436 .I mt_count
437 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯ (filemark) Ê¬¤Î¸åÊý¥¹¥Ú¡¼¥¹ (backward space)¡£
438 .TP
439 .B MTBSFM
440 .\"O Backward space over
441 .\"O .I mt_count
442 .\"O filemarks.
443 .\"O Reposition the tape to the EOT side of the last filemark.
444 .I mt_count
445 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯Ê¬¤Î¸åÊý¥¹¥Ú¡¼¥¹¡£
446 ¥Æ¡¼¥×¤Î°ÌÃÖ¤òºÇ¸å¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Î EOT Â¦¤ËÊѹ¹¤¹¤ë¡£
447 .TP
448 .B MTBSR
449 .\"O Backward space over
450 .\"O .I mt_count
451 .\"O records (tape blocks).
452 .I mt_count
453 ¸Ä¤Î¥ì¥³¡¼¥É (¥Æ¡¼¥×¥Ö¥í¥Ã¥¯) Ê¬¤Î¸åÊý¥¹¥Ú¡¼¥¹¡£
454 .TP
455 .B MTBSS
456 .\"O Backward space over
457 .\"O .I mt_count
458 .\"O setmarks.
459 .I mt_count
460 ¸Ä¤Î¥»¥Ã¥È¥Þ¡¼¥¯Ê¬¤Î¸åÊý¥¹¥Ú¡¼¥¹¡£
461 .TP
462 .B MTCOMPRESSION
463 .\"O Enable compression of tape data within the drive if
464 .\"O .I mt_count
465 .\"O is nonzero and disable compression if
466 .\"O .I mt_count
467 .\"O is zero.
468 .\"O This command uses the MODE page 15 supported by most DATs.
469 .I mt_count
470 ¤¬ 0 °Ê³°¤Ê¤é¡¢¥É¥é¥¤¥Ö¤Î¥Ç¡¼¥¿°µ½Ì¤òÍ­¸ú¤Ë¤¹¤ë¡£
471 0 ¤Ê¤é°µ½Ì¤ò̵¸ú¤Ë¤¹¤ë¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï MODE ¥Ú¡¼¥¸ 15 ¤òÍѤ¤¤ë¡£
472 ¤³¤ì¤Ï¤Û¤È¤ó¤É¤Î DAT ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
473 .TP
474 .B MTEOM
475 .\"O Go to the end of the recorded media (for appending files).
476 (¥Õ¥¡¥¤¥ë¤òÄɲ乤뤿¤á¤Ë) ¥á¥Ç¥£¥¢¤Îµ­Ï¿Éôʬ¤ÎºÇ¸å¤Þ¤Ç¿Ê¤á¤ë¡£
477 .TP
478 .B MTERASE
479 .\"O Erase tape.
480 .\"O With 2.6 kernel, short erase (mark tape empty) is performed if the
481 .\"O argument is zero.
482 .\"O Otherwise long erase (erase all) is done.
483 ¥Æ¡¼¥×¤ÎÆâÍƤò¾Ãµî¤¹¤ë¡£
484 2.6 ¥«¡¼¥Í¥ë¤Ç¤Ï¡¢°ú¿ô¤¬ 0 ¤Ê¤é¤Ð short erase (¥Æ¡¼¥×¤¬¶õ¤À¤È°õ¤ò¤Ä¤±¤ë)
485 ¤ò¹Ô¤¦¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï long erase (Á´ÂΤò¾Ãµî¤¹¤ë) ¤ò¹Ô¤¦¡£
486 .TP
487 .B MTFSF
488 .\"O Forward space over
489 .\"O .I mt_count
490 .\"O filemarks.
491 .I mt_count
492 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹ (forward space)¡£
493 .TP
494 .B MTFSFM
495 .\"O Forward space over
496 .\"O .I mt_count
497 .\"O filemarks.
498 .\"O Reposition the tape to the BOT side of the last filemark.
499 .I mt_count
500 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹¡£
501 ¥Æ¡¼¥×¤Î°ÌÃ֤ϺǸå¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Î BOT Â¦Êѹ¹¤µ¤ì¤ë¡£
502 .TP
503 .B MTFSR
504 .\"O Forward space over
505 .\"O .I mt_count
506 .\"O records (tape blocks).
507 .I mt_count
508 ¸Ä¤Î¥ì¥³¡¼¥É (¥Æ¡¼¥×¥Ö¥í¥Ã¥¯) Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹¡£
509 .TP
510 .B MTFSS
511 .\"O Forward space over
512 .\"O .I mt_count
513 .\"O setmarks.
514 .I mt_count
515 ¸Ä¤Î¥»¥Ã¥È¥Þ¡¼¥¯Ê¬¤ÎÁ°Êý¥¹¥Ú¡¼¥¹¡£
516 .TP
517 .B MTLOAD
518 .\"O Execute the SCSI load command.
519 .\"O A special case is available for some HP
520 .\"O autoloaders.
521 .\"O If
522 .\"O .I mt_count
523 .\"O is the constant
524 .\"O .B MT_ST_HPLOADER_OFFSET
525 .\"O plus a number, the number is
526 .\"O sent to the drive to control the autoloader.
527 SCSI ¥í¡¼¥É¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£ HP ¥ª¡¼¥È¥í¡¼¥À¤Ë¸Â¤Ã¤ÆÍøÍѤǤ­¤ë¡£
528 .\"nakano: ¤¢¤Ã¤Æ¤ë¡©
529 .I mt_count
530 ¤¬Äê¿ô
531 .B MT_ST_HPLOADER_OFFSET
532 ¤È¤¢¤ë¿ôÃͤÎϤǤ¢¤ë¾ì¹ç¡¢
533 ¤½¤Î¿ôÃͤ¬¥É¥é¥¤¥Ö¤ËÁ÷¤é¤ì¡¢¥ª¡¼¥È¥í¡¼¥À¤ÎÀ©¸æ¤ËÍѤ¤¤é¤ì¤ë¡£
534 .TP
535 .B MTLOCK
536 .\"O Lock the tape drive door.
537 ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ÎÈâ¤ò¥í¥Ã¥¯¤¹¤ë¡£
538 .TP
539 .B MTMKPART
540 .\"O Format the tape into one or two partitions.
541 .\"O If
542 .\"O .I mt_count
543 .\"O is nonzero, it gives the size of the first partition and the second
544 .\"O partition contains the rest of the tape.
545 .\"O If
546 .\"O .I mt_count
547 .\"O is zero, the tape is formatted into one partition.
548 .\"O This command is not allowed for a drive unless the partition support
549 .\"O is enabled for the drive (see
550 .\"O .BR MT_ST_CAN_PARTITIONS
551 .\"O below).
552 ¥Æ¡¼¥×¤ò 1 ¤Þ¤¿¤Ï 2 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë¡£
553 .I mt_count
554 ¤¬ 0 ¤Ç¤Ê¤±¤ì¤Ð¡¢¤³¤ì¤¬ºÇ½é¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÍ¿¤¨¡¢
555 ÆóÈÖÌܤΥѡ¼¥Æ¥£¥·¥ç¥ó¤¬¥Æ¡¼¥×¤Î»Ä¤ê¤Ë¤Ê¤ë¡£
556 .I mt_count
557 ¤¬ 0 ¤Î¾ì¹ç¤Ï¡¢¥Æ¡¼¥×¤Ï°ì¤Ä¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¤·¤Æ¥Õ¥©¡¼¥Þ¥Ã¥È¤µ¤ì¤ë¡£
558 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥Ý¡¼¥È¤¬Í­¸ú¤Ë¤µ¤ì¤¿
559 ¥É¥é¥¤¥Ö¤Ç¤Ê¤±¤ì¤Ð»È¤¨¤Ê¤¤ (°Ê²¼¤Î
560 .B MT_ST_CAN_PARTITIONS
561 ¤ò¸«¤è)¡£
562 .TP
563 .B MTNOP
564 .\"O No op \(em flushes the driver's buffer as a side effect.
565 .\"O Should be used before reading status with
566 .\"O .BR MTIOCGET .
567 ²¿¤âÁàºî¤ò¹Ô¤ï¤Ê¤¤¡£\- Éû¼¡Åª¤Ê¸ú²Ì¤È¤·¤Æ¡¢¥É¥é¥¤¥Ð¡¼¤Î¥Ð¥Ã¥Õ¥¡
568 ¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
569 .B MTIOCGET
570 ¤ò»È¤Ã¤Æ¾õÂÖ¤òÆɤ߽Ф¹Á°¤Ë¤Ï¤³¤ÎÁàºî¤ò¹Ô¤¦¤Ù¤­¤Ç¤¢¤ë¡£
571 .TP
572 .B MTOFFL
573 .\"O Rewind and put the drive off line.
574 ´¬¤­Ìᤷ (rewind) ¤ò¹Ô¤¤¡¢¥É¥é¥¤¥Ö¤ò¥ª¥Õ¥é¥¤¥ó (off line) ¤Ë¤¹¤ë¡£
575 .TP
576 .B MTRESET
577 .\"O Reset drive.
578 ¥É¥é¥¤¥Ö¤ò¥ê¥»¥Ã¥È¤¹¤ë¡£
579 .TP
580 .B MTRETEN
581 .\"O Re-tension tape.
582 ¥Æ¡¼¥×¤ò¥ê¥Æ¥ó¥·¥ç¥ó (re-tension) ¤¹¤ë
583 (¥Æ¡¼¥×¤òºÇ¸å¤Þ¤Ç´¬¤¤¤¿¸å¡¢ºÇ½é¤Þ¤Ç´¬¤­Ì᤹)¡£
584 .TP
585 .B MTREW
586 .\"O Rewind.
587 ´¬¤­Ìᤷ¡£
588 .TP
589 .B MTSEEK
590 .\"O Seek to the tape block number specified in
591 .\"O .IR mt_count .
592 .\"O This operation requires either a SCSI-2 drive that supports the
593 .\"O .B LOCATE
594 .\"O command (device-specific address)
595 .\"O or a Tandberg-compatible SCSI-1 drive (Tandberg, Archive
596 .\"O Viper, Wangtek, ...).
597 .\"O The block number should be one that was previously returned by
598 .\"O .BR MTIOCPOS
599 .\"O if device-specific addresses are used.
600 .I mt_count
601 ¤Ç»ØÄꤵ¤ì¤¿¥Æ¡¼¥×¥Ö¥í¥Ã¥¯ÈÖ¹æ¤ò¥·¡¼¥¯¤¹¤ë¡£
602 ¤³¤ÎÁàºî¤¬¹Ô¤¨¤ë¤Î¤Ï¡¢ \s-1LOCATE\s+1 ¥³¥Þ¥ó¥É (¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥¢¥É¥ì¥¹)
603 ¤ò¥µ¥Ý¡¼¥È¤¹¤ë SCSI-2 ¥É¥é¥¤¥Ö¤«¡¢¤¢¤ë¤¤¤Ï Tandberg
604 ¸ß´¹¤Î SCSI-1 ¥É¥é¥¤¥Ö (Tandberg, Archive, Viper, Wangtek,¡Ä) ¤Ç¤¢¤ë¡£
605 ¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥¢¥É¥ì¥¹¤¬ÍøÍѤµ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Ï
606 °ÊÁ°¤Ë \s-1MTIOCPOS\s+1 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤¿¤â¤Î¤Ë¤¹¤Ù¤­¤Ç¤¢¤ë¡£
607 .TP
608 .B MTSETBLK
609 .\"O Set the drive's block length to the value specified in
610 .\"O .IR mt_count .
611 .\"O A block length of zero sets the drive to variable block size mode.
612 .I mt_count
613 ¤ÎÃͤò¥É¥é¥¤¥Ö¤Î¥Ö¥í¥Ã¥¯Ä¹ (block length) ¤È¤·¤Æ¥»¥Ã¥È¤¹¤ë¡£
614 ¥Ö¥í¥Ã¥¯Ä¹¤ò 0 ¤Ë¤¹¤ë¤È¥É¥é¥¤¥Ö¤Ï²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¥â¡¼¥É¤Ë¥»¥Ã
615 ¥È¤µ¤ì¤ë¡£
616 .TP
617 .B MTSETDENSITY
618 .\"O Set the tape density to the code in
619 .\"O .IR mt_count .
620 .\"O The density codes supported by a drive can be found from the drive
621 .\"O documentation.
622 ¥Æ¡¼¥×Ì©ÅÙ (tape density) ¤ò
623 .I mt_count
624 ¤Ç¼¨¤µ¤ì¤ë¥³¡¼¥É¤ËÊѹ¹¤¹¤ë¡£¥É¥é¥¤¥Ö¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÌ©ÅÙ¥³¡¼¥É
625 ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥É¥é¥¤¥Ö¤Îʸ½ñ¤Ë½ñ¤¤¤Æ¤¢¤ë¤À¤í¤¦¡£
626 .TP
627 .B MTSETPART
628 .\"O The active partition is switched to
629 .\"O .IR mt_count .
630 .\"O The partitions are numbered from zero.
631 .\"O This command is not allowed for
632 .\"O a drive unless the partition support is enabled for the drive (see
633 .\"O .B MT_ST_CAN_PARTITIONS
634 .\"O below).
635 ¥¢¥¯¥Æ¥£¥Ö¤Ê¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÂè
636 .I mt_count
637 ÈÖÌܤËÀÚ¤êÂؤ¨¤ë¡£¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ï 0 ¤«¤é¿ô¤¨¤ë¡£
638 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥Ý¡¼¥È¤¬Í­¸ú¤Ë¤µ¤ì¤¿
639 ¥É¥é¥¤¥Ö¤Ç¤Ê¤±¤ì¤Ð»È¤¨¤Ê¤¤ (°Ê²¼¤Î
640 .B MT_ST_CAN_PARTITIONS
641 ¤ò¸«¤è)¡£
642 .TP
643 .B MTUNLOAD
644 .\"O Execute the SCSI unload command (does not eject the tape).
645 SCSI unload ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë (¥Æ¡¼¥×¤Î¥¤¥¸¥§¥¯¥È¤Ï¹Ô¤ï¤Ê¤¤)¡£
646 .TP
647 .B MTUNLOCK
648 .\"O Unlock the tape drive door.
649 ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ÎÈâ¤Î¥í¥Ã¥¯¤ò²ò½ü¤¹¤ë¡£
650 .TP
651 .B MTWEOF
652 .\"O Write
653 .\"O .I mt_count
654 .\"O filemarks.
655 .I mt_count
656 ¸Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤ò½ñ¤­¹þ¤à¡£
657 .TP
658 .B MTWSM
659 .\"O Write
660 .\"O .I mt_count
661 .\"O setmarks.
662 .I mt_count
663 ¸Ä¤Î¥»¥Ã¥È¥Þ¡¼¥¯¤ò½ñ¤­¹þ¤à¡£
664 .PP
665 .\"O Magnetic Tape operations for setting of device options (by the superuser):
666 ¥Ç¥Ð¥¤¥¹¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Î¤¿¤á¤Î (¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤è¤ë) ¼§µ¤¥Æ¡¼¥×Áàºî:
667 .TP 8
668 .B MTSETDRVBUFFER
669 .\"O Set various drive and driver options according to bits encoded in
670 .\"O .IR mt_count .
671 .\"O These consist of the drive's buffering mode, a set of Boolean driver
672 .\"O options, the buffer write threshold, defaults for the block size and
673 .\"O density, and timeouts (only in kernels 2.1 and later).
674 .\"O A single operation can affect only one item in the list above (the
675 .\"O Booleans counted as one item.)
676 ¤¤¤í¤¤¤í¤Ê¥É¥é¥¤¥Ö¤È¥É¥é¥¤¥Ð¡¼¤Î¥ª¥×¥·¥ç¥ó¤ò
677 .I mt_count
678 ¤Ë¥¨¥ó¥³¡¼¥É¤µ¤ì¤¿³Æ¥Ó¥Ã¥È¤Ë½¾¤Ã¤ÆÀßÄꤹ¤ë¡£
679 ¥ª¥×¥·¥ç¥ó¤Ë¤Ï¡¢¥É¥é¥¤¥Ö¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¥â¡¼¥É¡¢
680 ¥Ö¡¼¥ëÃͤΥɥ饤¥Ð¥ª¥×¥·¥ç¥ó¤Î½¸¹ç¡¢
681 ¥Ð¥Ã¥Õ¥¡¤Î½ñ¤­¹þ¤ßïçÃÍ (¥Ç¥Õ¥©¥ë¥È¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÈÌ©ÅÙ)¡¢
682 ¥¿¥¤¥à¥¢¥¦¥ÈÃͤ¬´Þ¤Þ¤ì¤ë (¥«¡¼¥Í¥ë 2.1 °Ê¹ß)¡£
683 °ì²ó¤ÎÁàºî¤ÇÊѤ¨¤é¤ì¤ë¤Î¤Ï¡¢¾åµ­¤Î¥ê¥¹¥È¤Î¤É¤ì¤«°ì¤Ä¤À¤±¤Ç¤¢¤ë
684 (Ê£¿ô¤Î¥Ö¡¼¥ëÃͤϤޤȤá¤Æ°ì¤Ä¤È´ªÄꤵ¤ì¤ë)¡£
685 .IP
686 .\"O A value having zeros in the high-order 4 bits will be used to set the
687 .\"O drive's buffering mode.
688 .\"O The buffering modes are:
689 ¹â°Ì¤Î4¥Ó¥Ã¥È¤¬¥¼¥í¤Ç¤¢¤ëÃͤϡ¢
690 ¥É¥é¥¤¥Ö¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¥â¡¼¥É¤ÎÀßÄê¤Ë»È¤ï¤ì¤ë¡£
691 ¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¥â¡¼¥É¤Ï°Ê²¼¤ÎÄ̤ê:
692 .RS 12
693 .IP 0 4
694 .\"O The drive will not report
695 .\"O .BR GOOD
696 .\"O status on write commands until the data
697 .\"O blocks are actually written to the medium.
698 ¥É¥é¥¤¥Ö¤Ï¥é¥¤¥È¥³¥Þ¥ó¥É¤ËÂФ·¡¢
699 ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤¬¼ÂºÝ¤ËÇÞÂΤ˽ñ¤­¹þ¤Þ¤ì¤ë¤Þ¤Ç
700 .B GOOD
701 ¤Î¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤µ¤Ê¤¤¡£
702 .IP 1
703 .\"O The drive may report
704 .\"O .BR GOOD
705 .\"O status on write commands as soon as all the
706 .\"O data has been transferred to the drive's internal buffer.
707 ¥É¥é¥¤¥Ö¤Ï¥é¥¤¥È¥³¥Þ¥ó¥É¤ËÂФ·¡¢
708 ¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ö¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤ËžÁ÷¤µ¤ì¤ë¤È¤¹¤°¤Ë¡¢
709 .B GOOD
710 ¤Î¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤¹¤³¤È¤¬¤Ç¤­¤ë¡£
711 .IP 2
712 .\"O The drive may report
713 .\"O .B GOOD
714 .\"O status on write commands as soon as (a) all
715 .\"O the data has been transferred to the drive's internal buffer, and
716 .\"O (b) all buffered data from different initiators has been successfully
717 .\"O written to the medium.
718 ¥é¥¤¥È¥³¥Þ¥ó¥É¤ËÂФ·¡¢°Ê²¼¤Î 2 ¤Ä¤Î¾ò·ï¤¬¤½¤í¤Ã¤¿¾ì¹ç¡¢
719 ¥É¥é¥¤¥Ö¤Ï¤¹¤°¤Ë
720 .B GOOD
721 ¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤¹»ö¤¬¤Ç¤­¤ë¡£
722 (a) ¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ö¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤ËžÁ÷¤µ¤ì¤¿¡£
723 (b) ÊÌ¡¹¤Î¥¤¥Ë¥·¥¨¡¼¥¿¡¼¤«¤éÍ褿¥Ð¥Ã¥Õ¥¡¥Ç¡¼¥¿¤¬¡¢
724 ¤¹¤Ù¤ÆÇÞÂΤØÌäÂê¤Ê¤¯½ñ¤­¹þ¤Þ¤ì¤¿¡£
725 .RE
726 .IP
727 .\"O To control the write threshold the value in
728 .\"O .I mt_count
729 .\"O must include the constant
730 .\"O .BR MT_ST_WRITE_THRESHOLD
731 .\"O logically ORed with a block count in the low 28 bits.
732 .\"O The block count refers to 1024-byte blocks, not the physical block
733 .\"O size on the tape.
734 .\"O The threshold cannot exceed the driver's internal buffer size (see
735 .\"O DESCRIPTION, above).
736 ½ñ¤­¹þ¤ßïçÃͤòÀ©¸æ¤¹¤ë¤Ë¤Ï¡¢
737 .I mt_count
738 ¤Ë¤Ï¡¢Äê¿ô 
739 .B MT_ST_WRITE_THRESHOLD
740 ¤È¥Ö¥í¥Ã¥¯¥«¥¦¥ó¥È¤ÎÏÀÍýÏÂ
741 (OR) ¤ò¤È¤Ã¤¿Ãͤò²¼°Ì¤Î 28¥Ó¥Ã¥È¤Ë´Þ¤Þ¤Í¤Ð¤Ê¤é¤Ê¤¤¡£
742 ¤³¤Î¥Ö¥í¥Ã¥¯¥«¥¦¥ó¥È¤Ï 1024 ¥Ð¥¤¥È¥Ö¥í¥Ã¥¯¤òñ°Ì¤È¤·¤¿¤â¤Î¤Ç¡¢¥Æ¡¼¥×¤Î
743 ʪÍý¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤òñ°Ì¤È¤·¤¿¤â¤Î¤Ç¤Ï¤Ê¤¤¡£
744 ¤Þ¤¿¡¢ïçÃͤϥɥ饤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡ (¾åµ­¤ÎÀâÌÀ»²¾È)
745 ¤Î¥µ¥¤¥º¤ò±Û¤¨¤ë»ö¤Ï¤Ç¤­¤Ê¤¤¡£
746 .IP
747 .\"O To set and clear the Boolean options
748 .\"O the value in
749 .\"O .I mt_count
750 .\"O must include one of the constants
751 .\"O .BR MT_ST_BOOLEANS ,
752 .\"O .BR MT_ST_SETBOOLEANS ,
753 .\"O .BR MT_ST_CLEARBOOLEANS ,
754 .\"O or
755 .\"O .BR MT_ST_DEFBOOLEANS
756 .\"O logically or'ed with
757 .\"O whatever combination of the following options is desired.
758 .\"O Using
759 .\"O .BR MT_ST_BOOLEANS
760 .\"O the options can be set to the values
761 .\"O defined in the corresponding bits.
762 .\"O With
763 .\"O .BR MT_ST_SETBOOLEANS
764 .\"O the options can be selectively set and with
765 .\"O .BR MT_ST_DEFBOOLEANS
766 .\"O selectively cleared.
767 ¥Ö¡¼¥ëÃͤΥե饰¤òÀßÄꡦ²ò½ü¤¹¤ë¤Ë¤Ï¡¢
768 .I mt_count
769 ¤ÎÃͤÏ
770 .BR MT_ST_BOOLEANS ,
771 .BR MT_ST_SETBOOLEANS ,
772 .BR MT_ST_CLEARBOOLEANS ,
773 .BR MT_ST_DEFBOOLEANS
774 ¤Î¤¤¤º¤ì¤«°ì¤Ä¤ÎÃͤˡ¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ÎǤ°Õ¤ÎÁȤ߹ç¤ï¤»¤ËÂФ·¤Æ
775 ÏÀÍýϤò¼è¤Ã¤¿¤â¤Î¤ò»ØÄꤹ¤ë¡£
776 .BR MT_ST_BOOLEANS ¤òÍѤ¤¤ë¤È¡¢
777 ¥ª¥×¥·¥ç¥ó¤òÂбþ¤¹¤ë¥Ó¥Ã¥È¤ËÂФ·¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃͤËÀßÄê¤Ç¤­¤ë¡£
778 .BR MT_ST_SETBOOLEANS ¤òÍѤ¤¤ë¤È¡¢
779 ¥ª¥×¥·¥ç¥ó¤ÏÁªÂòŪ¤ËÀßÄꤵ¤ì¡¢
780 .BR MT_ST_DEFBOOLEANS ¤òÍѤ¤¤ë¤È
781 ÁªÂòŪ¤Ë²ò½ü¤µ¤ì¤ë¡£
782 .IP ""
783 .\"O The default options for a tape device are set with
784 .\"O .BR MT_ST_DEFBOOLEANS .
785 .\"O A nonactive tape device (e.g., device with
786 .\"O minor 32 or 160) is activated when the default options for it are
787 .\"O defined the first time.
788 .\"O An activated device inherits from the device
789 .\"O activated at start-up the options not set explicitly.
790 ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó¤Ï
791 .B MT_ST_DEFBOOLEANS
792 ¤Ë¤è¤Ã¤ÆÀßÄꤵ¤ì¤ë¡£
793 ¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ê¤¤¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹ (Îã: ¥Þ¥¤¥Ê¡¼Èֹ栤¬ 32 ¤ä 160 ¤Î¥Ç¥Ð¥¤¥¹)
794 ¤Ï¡¢¤½¤ì¤é¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó¤¬ºÇ½é¤ËÄêµÁ¤µ¤ì¤¿¤È¤­¤Ë
795 ¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤ë¡£¥¢¥¯¥Æ¥£¥Ö¤Ë¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Ï¡¢
796 µ¯Æ°»þ¤Ë¥¢¥¯¥Æ¥£¥Ö¤Ë¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤«¤é¡¢
797 ÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¥ª¥×¥·¥ç¥ó¤ò·Ñ¾µ¤¹¤ë¡£
798 .IP ""
799 .\"O The Boolean options are:
800 ¥Ö¡¼¥ëÃͤΥª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê:
801 .RS
802 .TP
803 .\"O .BR MT_ST_BUFFER_WRITES " (Default: true)"
804 .BR MT_ST_BUFFER_WRITES " (¥Ç¥Õ¥©¥ë¥È: ¿¿)"
805 .\"O Buffer all write operations in fixed-block mode.
806 .\"O If this option is false and the drive uses a fixed block size, then
807 .\"O all write operations must be for a multiple of the block size.
808 .\"O This option must be set false to write reliable multivolume archives.
809 ¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ë¤ª¤±¤ë¤¹¤Ù¤Æ¤Î½ñ¤­¹þ¤ßÁàºî¤ò¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤¹¤ë¡£
810 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬µ¶¤Ç¤¢¤ê¡¢¤«¤Ä¥É¥é¥¤¥Ö¤¬¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Î»þ¤Ï¡¢
811 ¤¹¤Ù¤Æ¤Î½ñ¤­¹þ¤ßÁàºî¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎÇÜ¿ô¤ÎÂ礭¤µ¤Ç¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
812 ¿®ÍêÀ­¤Î¤¢¤ë¥Þ¥ë¥Á¥Ü¥ê¥å¡¼¥à¥¢¡¼¥«¥¤¥Ö¤ò½ñ¤­¹þ¤à¤¿¤á¤Ë¤Ï¡¢
813 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ïµ¶¤ËÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
814 .\"O .BR MT_ST_ASYNC_WRITES " (Default: true)"
815 .BR MT_ST_ASYNC_WRITES " (¥Ç¥Õ¥©¥ë¥È: ¿¿)"
816 .\"O When this option is true, write operations return immediately without
817 .\"O waiting for the data to be transferred to the drive if the data fits
818 .\"O into the driver's buffer.
819 .\"O The write threshold determines how full the buffer must be before a
820 .\"O new SCSI write command is issued.
821 .\"O Any errors reported by the drive will be held until the next
822 .\"O operation.
823 .\"O This option must be set false to write reliable multivolume archives.
824 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¿¿¤Î»þ¤Ë¤Ï¡¢¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ð¤Î¥Ð¥Ã¥Õ¥¡¤Ë¼ý¤Þ¤ë»þ¤Ë¤Ï
825 ¥Ç¡¼¥¿¤¬¥É¥é¥¤¥Ö¤ËžÁ÷¤µ¤ì¤ë¤Î¤òÂÔ¤¿¤º¤Ë¡¢¤¹¤°¤Ë½ñ¤­¹þ¤ßÁàºî¤¬Ê֤äÆÍè¤ë¡£
826 ¥Ð¥Ã¥Õ¥¡¤¬¤É¤Î¤¯¤é¤¤¶õ¤¤¤¿¤é¼¡¤Î SCSI write ¥³¥Þ¥ó¥É¤òȯ¹Ô¤Ç¤­¤ë¤«¤Ï¡¢
827 ½ñ¤­¹þ¤ßïçÃͤˤè¤Ã¤Æ·è¤Þ¤ë¡£
828 ¥É¥é¥¤¥Ö¤¬ÊÖ¤¹¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¤Ï¡¢¼¡¤ÎÁàºî¤Þ¤ÇÊݸ¤µ¤ì¤ë¡£
829 ¿®ÍêÀ­¤Î¤¢¤ë¥Þ¥ë¥Á¥Ü¥ê¥å¡¼¥à¥¢¡¼¥«¥¤¥Ö¤ò½ñ¤­¹þ¤à¤¿¤á¤Ë¤Ï¡¢
830 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ïµ¶¤ËÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
831 .TP
832 .\"O .BR MT_ST_READ_AHEAD " (Default: true)"
833 .BR MT_ST_READ_AHEAD " (¥Ç¥Õ¥©¥ë¥È: ¿¿)"
834 .\"O This option causes the driver to provide read buffering and
835 .\"O read-ahead in fixed-block mode.
836 .\"O If this option is false and the drive uses a fixed block size, then
837 .\"O all read operations must be for a multiple of the block size.
838 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
839 ¥É¥é¥¤¥Ð¤Ï¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤ÇÆɤ߹þ¤ß¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÈÀèÆɤߤò¤¹¤ë¤è¤¦¤Ë¤Ê¤ë¡£
840 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬µ¶¤Ç¤¢¤ê¡¢¤«¤Ä¥É¥é¥¤¥Ö¤¬¸ÇÄêĹ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Î»þ¤Ï¡¢
841 ¤¹¤Ù¤Æ¤ÎÆɤ߹þ¤ßÁàºî¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÎÇÜ¿ô¤ÎÂ礭¤µ¤Ç¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
842 .TP
843 .\"O .BR MT_ST_TWO_FM " (Default: false)"
844 .BR MT_ST_TWO_FM " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
845 .\"O This option modifies the driver behavior when a file is closed.
846 .\"O The normal action is to write a single filemark.
847 .\"O If the option is true the driver will write two filemarks and
848 .\"O backspace over the second one.
849 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥Õ¥¡¥¤¥ë¤¬¥¯¥í¡¼¥º¤µ¤ì¤¿»þ¤Î¥É¥é¥¤¥Ð¡¼¤Î¿¶Éñ¤¤¤òÊѹ¹¤¹¤ë¡£
850 °ì¤Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤ò½ñ¤­¹þ¤à¤Î¤¬Ä̾ï¤ÎÆ°ºî¤Ç¤¢¤ë¡£
851 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¿¿¤Î»þ¤Ë¤Ï¡¢
852 ¥É¥é¥¤¥Ð¡¼¤Ï 2 ¤Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤ò½ñ¤­¹þ¤ó¤Ç¡¢
853 2 ¤Ä¤á¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Î¤È¤³¤í¤ËÌá¤ë¡£
854 .IP
855 .\"O Note:
856 .\"O This option should not be set true for QIC tape drives since they are
857 .\"O unable to overwrite a filemark.
858 .\"O These drives detect the end of recorded data by testing for blank tape
859 .\"O rather than two consecutive filemarks.
860 .\"O Most other current drives also
861 .\"O detect the end of recorded data and using two filemarks is usually
862 .\"O necessary only when interchanging tapes with some other systems.
863 Ãí°Õ¡§
864 QIC¥Æ¡¼¥×¥É¥é¥¤¥Ö¤Ï¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Ë¾å½ñ¤­¤¹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤Î¤Ç¡¢
865 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¿¿¤Ë¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
866 ¤³¤ì¤é¤Î¥É¥é¥¤¥Ö¤Ïµ­Ï¿¥Ç¡¼¥¿¤ÎËöÈø¤Î¸¡ÃΤˡ¢
867 ¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬ 2¤Ä³¤±¤Æ¤¢¤ë¤«¤Ç¤Ï¤Ê¤¯¡¢
868 ¥Ö¥é¥ó¥¯¥Æ¡¼¥×¤«¤É¤¦¤«¤Î¥Æ¥¹¥È¤òÍѤ¤¤ë¡£
869 ¸½ºß¤Î¾¤Î¤Û¤È¤ó¤É¤Î¥É¥é¥¤¥Ö¤â¡¢µ­Ï¿¥Ç¡¼¥¿¤ÎËöÈø¤ò¸¡ÃΤ¹¤ë¡£
870 2 ¤Ä¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤¬É¬Íפˤʤë¤Î¤Ï¡¢
871 ¾¤Î¥·¥¹¥Æ¥à¤È¥Æ¡¼¥×¤ò¤ä¤ê¤È¤ê¤¹¤ë¾ì¹ç¤Ç¤¢¤ë¡£
872 .TP
873 .\"O .BR MT_ST_DEBUGGING " (Default: false)"
874 .BR MT_ST_DEBUGGING " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
875 .\"O This option turns on various debugging messages from the driver
876 .\"O (effective only if the driver was compiled with
877 .\"O .B DEBUG
878 .\"O defined nonzero).
879 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¿¿¤Ë¤¹¤ë¤È¡¢
880 ¥É¥é¥¤¥Ð¤Ï¤¤¤í¤¤¤í¤Ê¥Ç¥Ð¥Ã¥°ÍÑ¥á¥Ã¥»¡¼¥¸¤ò½Ð¤¹¤è¤¦¤Ë¤Ê¤ë
881 .RB ( DEBUG
882 ¤òÈó¥¼¥í¤ËÄêµÁ¤·¤Æ¥É¥é¥¤¥Ð¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤ë»þ¤Î¤ßÍ­¸ú)¡£
883 .TP
884 .\"O .BR MT_ST_FAST_EOM " (Default: false)"
885 .BR MT_ST_FAST_EOM " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
886 .\"O This option causes the
887 .\"O .B MTEOM
888 .\"O operation to be sent directly to the
889 .\"O drive, potentially speeding up the operation but causing the driver to
890 .\"O lose track of the current file number normally returned by the
891 .\"O .B MTIOCGET
892 .\"O request.
893 .\"O If
894 .\"O .B MT_ST_FAST_EOM
895 .\"O is false the driver will respond to an
896 .\"O .B MTEOM
897 .\"O request by forward spacing over files.
898 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¿¿¤Ë¤¹¤ë¤È¡¢
899 .B MTEOM
900 Áàºî¤¬Ä¾Àܥɥ饤¥Ö¤ËÁ÷¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ë¡£
901 Áàºî¤¬Á᤯¤Ê¤ë¤Ï¤º¤À¤¬¡¢
902 ¥É¥é¥¤¥Ð¤¬¸½ºß¤Î¥Õ¥¡¥¤¥ëÈÖ¹æ¤ò¸«¼º¤¦¤³¤È¤Ë¤Ê¤ë
903 (¤³¤ì¤ÏÄ̾ï¤Ê¤é
904 .B MTIOCGET
905 ¥ê¥¯¥¨¥¹¥È¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë)¡£
906 .B MT_ST_FAST_EOM
907 ¤¬µ¶¤Î»þ¤Ë¤Ï¡¢¥É¥é¥¤¥Ð¤Ï
908 .B MTEOM
909 ¥ê¥¯¥¨¥¹¥È¤Ë±þ¤¨¤ë¤È¤­¡¢Á°Êý¤Ë¥Õ¥¡¥¤¥ë¤ò°ì¤Ä°ì¤Ä¿Ê¤á¤Æ¤¤¤¯¡£
910 .TP
911 .\"O .BR MT_ST_AUTO_LOCK " (Default: false)"
912 .BR MT_ST_AUTO_LOCK " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
913 .\"O When this option is true, the drive door is locked when the device is
914 .\"O opened and unlocked when it is closed.
915 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¿¿¤Î»þ¤Ë¤Ï¡¢
916 ¥Ç¥Ð¥¤¥¹¤¬¥ª¡¼¥×¥ó¤µ¤ì¤ë¤È¥É¥é¥¤¥Ö¤ÎÈ⤬¥í¥Ã¥¯¤µ¤ì¡¢
917 ¥¯¥í¡¼¥º¤µ¤ì¤ë¤È¥¢¥ó¥í¥Ã¥¯¤µ¤ì¤ë¡£
918 .TP
919 .\"O .BR MT_ST_DEF_WRITES " (Default: false)"
920 .BR MT_ST_DEF_WRITES " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
921 .\"O The tape options (block size, mode, compression, etc.) may change
922 .\"O when changing from one device linked to a drive to another device
923 .\"O linked to the same drive depending on how the devices are
924 .\"O defined.
925 .\"O This option defines when the changes are enforced by the
926 .\"O driver using SCSI-commands and when the drives auto-detection
927 .\"O capabilities are relied upon.
928 .\"O If this option is false, the driver
929 .\"O sends the SCSI-commands immediately when the device is changed.
930 .\"O If the
931 .\"O option is true, the SCSI-commands are not sent until a write is
932 .\"O requested.
933 .\"O In this case the drive firmware is allowed to detect the
934 .\"O tape structure when reading and the SCSI-commands are used only to
935 .\"O make sure that a tape is written according to the correct specification.
936 ¥Æ¡¼¥×¥ª¥×¥·¥ç¥ó (¥Ö¥í¥Ã¥¯¥µ¥¤¥º¡¢¥â¡¼¥É¡¢°µ½Ì¤Ê¤É)
937 ¤¬¤¢¤ë¥É¥é¥¤¥Ö¤Ë¥ê¥ó¥¯¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤ÇÊѹ¹¤µ¤ì¤ë¤È¡¢
938 ¤½¤ÎƱ¤¸¥É¥é¥¤¥Ö¤Ë¥ê¥ó¥¯¤µ¤ì¤¿Â¾¤Î¥Ç¥Ð¥¤¥¹¤Ç¤âÊѹ¹¤µ¤ì¤ë¤³¤È¤¬¤¢¤ë
939 (¤½¤Î¥Ç¥Ð¥¤¥¹¤ÎÄêµÁ¤Ë¤è¤ë)¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢
940 ¥É¥é¥¤¥Ð¤Ë¤è¤ëÊѹ¹¤ò¤¤¤Ä SCSI ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÈ¿±Ç¤µ¤»¤ë¤«¤È¡¢
941 ¥É¥é¥¤¥Ö¤Î¼«Æ°¸¡Ãε¡Ç½¤¬¤¤¤Ä¿®Íꤷ¤ÆÎɤ¤¤Î¤«¤òÄêµÁ¤¹¤ë¡£
942 ¤³¤Î¥ª¥×¥·¥ç¥ó¤òµ¶¤Ë¤·¤Æ¤ª¤¯¤È¡¢
943 ¥Ç¥Ð¥¤¥¹¤ÎÊѹ¹¤¬¤¢¤ë¤È¥É¥é¥¤¥Ð¤Ï¤¹¤°¤Ë SCSI ¥³¥Þ¥ó¥É¤òÁ÷¤ë¡£
944 ¿¿¤Ë¤·¤Æ¤ª¤¯¤È¡¢ SCSI ¥³¥Þ¥ó¥É¤Ï½ñ¤­¹þ¤ß¤¬Í׵ᤵ¤ì¤ë¤Þ¤ÇÁ÷¤é¤ì¤Ê¤¤¡£
945 ¸å¼Ô¤Î¾ì¹ç¤Ï¡¢Æɤ߹þ¤ß¤ÎºÝ¤Ë¥É¥é¥¤¥Ö¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ë¤è¤Ã¤Æ
946 ¥Æ¡¼¥×¹½Â¤¤Î¸¡ÃΤ¬¹Ô¤¨¤ë¡£¤Þ¤¿ SCSI ¥³¥Þ¥ó¥É¤Ï¡¢
947 ¥Æ¡¼¥×¤¬Àµ¤·¤¤»ØÄê¤Ë±è¤Ã¤Æ½ñ¤­¹þ¤Þ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤Î
948 ³Îǧ¤Î¤¿¤á¤À¤±¤ËÍѤ¤¤é¤ì¤ë¡£
949 .TP
950 .\"O .BR MT_ST_CAN_BSR " (Default: false)"
951 .BR MT_ST_CAN_BSR " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
952 .\"O When read-ahead is used, the tape must sometimes be spaced backward to the
953 .\"O correct position when the device is closed and the SCSI command to
954 .\"O space backwards over records is used for this purpose.
955 .\"O Some older
956 .\"O drives can't process this command reliably and this option can be used
957 .\"O to instruct the driver not to use the command.
958 .\"O The end result is that,
959 .\"O with read-ahead and fixed-block mode, the tape may not be correctly
960 .\"O positioned within a file when the device is closed.
961 .\"O With 2.6 kernel, the
962 .\"O default is true for drives supporting SCSI-3.
963 ÀèÆɤߤò»È¤¦¤È¡¢¥Æ¡¼¥×¤ò¥¯¥í¡¼¥º¤¹¤ë¤È¤­¤Ë¡¢
964 ¾ì¹ç¤Ë¤è¤Ã¤Æ¤Ï¥Æ¡¼¥×¤òÀµ¤·¤¤°ÌÃ֤˵ÕÌᤷ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£
965 ¤³¤ì¤Ë¤Ï¡¢¥ì¥³¡¼¥É¤ò±Û¤¨¤ÆµÕÌᤷ¤¹¤ë SCSI ¥³¥Þ¥ó¥É¤¬ÍѤ¤¤é¤ì¤ë¡£
966 ¸Å¤¤¥É¥é¥¤¥Ö¤Ç¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É½èÍý¤Î¿®ÍêÀ­¤¬Ä㤤¤³¤È¤¬¤¢¤ë¤¬¡¢
967 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
968 ¥É¥é¥¤¥Ð¤Ë¤³¤Î¥³¥Þ¥ó¥É¤ÎÍøÍѤò¶Ø»ß¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
969 ÀèÆɤߤȸÇÄêĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤òÍѤ¤¤Æ¤¤¤ë¤È¡¢ºÇ½ªÅª¤Ê·ë²Ì¤È¤·¤Æ¡¢
970 ¥Ç¥Ð¥¤¥¹¤Î¥¯¥í¡¼¥º»þ¤Ë¥Æ¡¼¥×¤¬Àµ¤·¤¤°ÌÃ֤ˤʤé¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£
971 .\"nakano ¤½¤¦¤«¡©
972 2.6 ¥«¡¼¥Í¥ë¤Ç¤Ï¡¢SCSI-3 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¥É¥é¥¤¥Ö¤ËÂФ·¤Æ¡¢
973 ¤³¤ÎÃͤΥǥե©¥ë¥È¤Ï¿¿¤È¤Ê¤ë¡£
974 .TP
975 .\"O .BR MT_ST_NO_BLKLIMS " (Default: false)"
976 .BR MT_ST_NO_BLKLIMS " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
977 .\"O Some drives don't accept the
978 .\"O .B "READ BLOCK LIMITS"
979 .\"O SCSI command.
980 .\"O If this is used, the driver does not use the command.
981 .\"O The drawback is
982 .\"O that the driver can't check before sending commands if the selected
983 .\"O block size is acceptable to the drive.
984 ¥É¥é¥¤¥Ö¤Ë¤è¤Ã¤Æ¤Ï
985 .B READ BLOCK LIMITS SCSI
986 ¥³¥Þ¥ó¥É¤ò¼õ¤±¤Ä¤±¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£
987 ¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤È¡¢¥É¥é¥¤¥Ð¤Ï¤³¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Ê¤¤¡£
988 ·çÅÀ¤Ï¡¢»ØÄꤷ¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬¥É¥é¥¤¥Ö¤Ë¼õÍý¤µ¤ì¤Æ¤·¤Þ¤¦¤È¡¢
989 ¥É¥é¥¤¥Ð¤Î¥³¥Þ¥ó¥ÉÁ÷¿®Á°¥Á¥§¥Ã¥¯¤¬¤Ç¤­¤Ê¤¯¤Ê¤ëÅÀ¤Ç¤¢¤ë¡£
990 .TP
991 .\"O .BR MT_ST_CAN_PARTITIONS " (Default: false)"
992 .BR MT_ST_CAN_PARTITIONS " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
993 .\"O This option enables support for several partitions within a
994 .\"O tape.
995 .\"O The option applies to all devices linked to a drive.
996 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢°ì¤Ä¤Î¥Æ¡¼¥×¤ËÊ£¿ô¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÃÖ¤¯¤³¤È¤ò
997 ¥µ¥Ý¡¼¥È¤¹¤ë¤«¤É¤¦¤«¤ò·è¤á¤ë¡£
998 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥É¥é¥¤¥Ö¤Ë¥ê¥ó¥¯¤µ¤ì¤¿Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤ËŬÍѤµ¤ì¤ë¡£
999 .TP
1000 .\"O .MT_ST_SCSI2LOGICAL " (Default: false)"
1001 .TP MT_ST_SCSI2LOGICAL " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
1002 .\"O This option instructs the driver to use the logical block addresses
1003 .\"O defined in the SCSI-2 standard when performing the seek and tell
1004 .\"O operations (both with
1005 .\"O .B MTSEEK
1006 .\"O and
1007 .\"O .B MTIOCPOS
1008 .\"O commands and when changing tape
1009 .\"O partition).
1010 .\"O Otherwise the device-specific addresses are used.
1011 .\"O It is highly advisable to set this option if the drive supports the
1012 .\"O logical addresses because they count also filemarks.
1013 .\"O There are some
1014 .\"O drives that only support the logical block addresses.
1015 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢
1016 seek ¤ª¤è¤Ó tell Áàºî (ξ¼Ô¤È¤â
1017 .BR MTSEEK ¡¦ MTIOCPOS
1018 ¥³¥Þ¥ó¥É¤òȼ¤¤¡¢¥Æ¡¼¥×°ÌÃÖ¤òÊѹ¹¤¹¤ë¤È¤­) ¤ÎºÝ¤Ë¡¢
1019 SCSI-2 ¤Îɸ½à¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ëÏÀÍý¥Ö¥í¥Ã¥¯¥¢¥É¥ì¥¹¤òÍѤ¤¤ë¤«¤É¤¦¤«¤ò
1020 ¥É¥é¥¤¥Ð¤ËÅÁ¤¨¤ë¡£
1021 .\"nakano both with ¤ÎÉôʬ²ø¤·¤¤¡£
1022 µ¶¤À¤È¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥¢¥É¥ì¥¹¤¬ÍѤ¤¤é¤ì¤ë¡£
1023 ¥É¥é¥¤¥Ö¤¬ÏÀÍý¥¢¥É¥ì¥¹¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤È¤­¤Ï¡¢
1024 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤ò¶¯¤¯´«¤á¤ë¡£
1025 ¤³¤Î¥â¡¼¥É¤Ç¤Ï¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤â¥«¥¦¥ó¥È¤¹¤ë¤«¤é¤Ç¤¢¤ë¡£
1026 ÏÀÍý¥Ö¥í¥Ã¥¯¥¢¥É¥ì¥¹¤·¤«¥µ¥Ý¡¼¥È¤·¤Ê¤¤¥É¥é¥¤¥Ö¤â¤¤¤¯¤Ä¤«Â¸ºß¤·¤Æ¤¤¤ë¡£
1027 .TP
1028 .\"O .BR MT_ST_SYSV " (Default: false)"
1029 .BR MT_ST_SYSV " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
1030 .\"O When this option is enabled, the tape devices use the SystemV
1031 .\"O semantics.
1032 .\"O Otherwise the BSD semantics are used.
1033 .\"O The most important
1034 .\"O difference between the semantics is what happens when a device used
1035 .\"O for reading is closed: in System V semantics the tape is spaced forward
1036 .\"O past the next filemark if this has not happened while using the
1037 .\"O device.
1038 .\"O In BSD semantics the tape position is not changed.
1039 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¿¿¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¡¢¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤Ï
1040 SystemV ¤Î¥ë¡¼¥ë¤òÍѤ¤¤ë¡£µ¶¤À¤È BSD ¤Î¥ë¡¼¥ë¤òÍѤ¤¤ë¡£
1041 .\"nakano: semantics ¢ª ¥ë¡¼¥ë ¤Ï¤Á¤È°ã¤¦¤«¡©
1042 ¤³¤ì¤é¤Î¥ë¡¼¥ë´Ö¤ÎºÇ¤âÂ礭¤Ê°ã¤¤¤Ï¡¢Æɤ߹þ¤ß¤ò¹Ô¤Ã¤Æ¤¤¤¿
1043 ¥Ç¥Ð¥¤¥¹¤¬¥¯¥í¡¼¥º¤µ¤ì¤¿¤È¤­¤Î¿¶Éñ¤¤¤Ç¤¢¤ë¡£
1044 System V ¤Î¥ë¡¼¥ë¤Ç¤Ï¡¢¥Æ¡¼¥×¤Ï¼¡¤Î¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤ò±Û¤¨¤Æ°ÜÆ°¤¹¤ë
1045 (¥Ç¥Ð¥¤¥¹¤ÎÍøÍÑ»þ¤Ë¤³¤ì¤¬¹Ô¤ï¤ì¤Ê¤«¤Ã¤¿¾ì¹ç)¡£
1046 BSD ¤Î¥ë¡¼¥ë¤Ç¤Ï¥Æ¡¼¥×°ÌÃÖ¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1047 .TP
1048 .\"O .BR MT_NO_WAIT " (Default: false)"
1049 .BR MT_NO_WAIT " (¥Ç¥Õ¥©¥ë¥È: µ¶)"
1050 .\"O Enables immediate mode (i.e., don't wait for the command to finish) for some
1051 .\"O commands (e.g., rewind).
1052 ¨»þ¥â¡¼¥É (immediate mode; ¥³¥Þ¥ó¥É¤Î½ªÎ»¤òÂÔ¤¿¤Ê¤¤)
1053 ¤ò¡¢¤¢¤ë¼ï¤Î¥³¥Þ¥ó¥É (rewind ¤Ê¤É) ¤ËÂФ·¤ÆÍ­¸ú¤Ë¤¹¤ë¡£
1054 .PP
1055 .\"O An example:
1056 Îã:
1057 .in +4n
1058 .nf
1059
1060 struct mtop mt_cmd;
1061 mt_cmd.mt_op = MTSETDRVBUFFER;
1062 mt_cmd.mt_count = MT_ST_BOOLEANS |
1063         MT_ST_BUFFER_WRITES | MT_ST_ASYNC_WRITES;
1064 ioctl(fd, MTIOCTOP, mt_cmd);
1065 .fi
1066 .in
1067 .RE
1068 .IP ""
1069 .\"O The default block size for a device can be set with
1070 .\"O .B MT_ST_DEF_BLKSIZE
1071 .\"O and the default density code can be set with
1072 .\"O .BR MT_ST_DEFDENSITY .
1073 .\"O The values for the parameters are or'ed
1074 .\"O with the operation code.
1075 ¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Ï
1076 .B MT_ST_DEF_BLKSIZE
1077 ¤Ë¤è¤Ã¤ÆÀßÄê¤Ç¤­¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÌ©ÅÙ¥³¡¼¥É¤Ï
1078 .B MT_ST_DEFDENSITY
1079 ¤Ë¤è¤Ã¤ÆÀßÄê¤Ç¤­¤ë¡£
1080 ¤³¤ì¤é¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤÏÁàºî¥³¡¼¥É¤È OR ¤·¤ÆÍ¿¤¨¤ë¡£
1081 .IP ""
1082 .\"O With kernels 2.1.x and later, the timeout values can be set with the
1083 .\"O subcommand
1084 .\"O .B MT_ST_SET_TIMEOUT
1085 .\"O ORed with the timeout in seconds.
1086 .\"O The long timeout (used for rewinds and other commands
1087 .\"O that may take a long time) can be set with
1088 .\"O .BR MT_ST_SET_LONG_TIMEOUT .
1089 .\"O The kernel defaults are very long to
1090 .\"O make sure that a successful command is not timed out with any
1091 .\"O drive.
1092 .\"O Because of this the driver may seem stuck even if it is only
1093 .\"O waiting for the timeout.
1094 .\"O These commands can be used to set more
1095 .\"O practical values for a specific drive.
1096 .\"O The timeouts set for one device
1097 .\"O apply for all devices linked to the same drive.
1098 2.1.x °Ê¹ß¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢¥¿¥¤¥à¥¢¥¦¥ÈÃͤÎÀßÄê¤Ï¡¢
1099 ¥µ¥Ö¥³¥Þ¥ó¥É
1100 .B MT_ST_SET_TIMEOUT
1101 ¤ËÉÃñ°Ì¤Î¥¿¥¤¥à¥¢¥¦¥ÈÃͤò
1102 OR ¤·¤ÆÍ¿¤¨¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¨¤ë¡£ long ¥¿¥¤¥à¥¢¥¦¥È
1103 (´¬¤­Ìᤷ¤Ê¤É¡¢Ä¹¤¤»þ´Ö¤¬¤«¤«¤ë¥³¥Þ¥ó¥É¤ËÂФ·¤ÆÍѤ¤¤é¤ì¤ë) ¤Ï
1104 .B MT_ST_SET_LONG_TIMEOUT
1105 ¤ÇÀßÄê¤Ç¤­¤ë¡£
1106 ¥«¡¼¥Í¥ë¤Î¥Ç¥Õ¥©¥ë¥È¤ÏÈó¾ï¤ËŤ¯¡¢¤É¤Î¥É¥é¥¤¥Ö¤Ç¤â
1107 À®¸ù¤·¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤¬·è¤·¤Æ¥¿¥¤¥à¥¢¥¦¥È¤·¤Ê¤¤¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
1108 ¤·¤¿¤¬¤Ã¤Æ¡¢¥É¥é¥¤¥Ð¤Ï¥¿¥¤¥à¥¢¥¦¥È¤òÂԤäƤ¤¤ë¤À¤±¤Ê¤Î¤Ë¡¢
1109 »É¤µ¤Ã¤¿ (stuck ¤·¤¿) ¤è¤¦¤Ë¸«¤¨¤ë¤³¤È¤¬¤¢¤ë¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤ò»È¤¨¤Ð¡¢
1110 ÆÃÄê¤Î¥É¥é¥¤¥Ö¤ËÂФ·¤Æ¤â¤¦¾¯¤·¼ÂºÝŪ¤ÊÃͤËÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
1111 °ì¤Ä¤Î¥Ç¥Ð¥¤¥¹¤ËÀßÄꤷ¤¿¥¿¥¤¥à¥¢¥¦¥ÈÃͤϡ¢
1112 ¤½¤ì¤ÈƱ¤¸¥É¥é¥¤¥Ö¤Ë¥ê¥ó¥¯¤·¤¿Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤ËŬÍѤµ¤ì¤ë¡£
1113 .IP ""
1114 .\"O Starting from kernels 2.4.19 and 2.5.43, the driver supports a status
1115 .\"O bit which indicates whether the drive requests cleaning.
1116 .\"O The method used by the
1117 .\"O drive to return cleaning information is set using the
1118 .\"O .B MT_ST_SEL_CLN
1119 .\"O .B subcommand.
1120 .\"O If the value is zero, the cleaning
1121 .\"O bit is always zero.
1122 .\"O If the value is one, the TapeAlert data defined
1123 .\"O in the SCSI-3 standard is used (not yet implemented).
1124 .\"O Values 2-17 are
1125 .\"O reserved.
1126 .\"O If the lowest eight bits are >= 18, bits from the extended
1127 .\"O sense data are used.
1128 .\"O The bits 9-16 specify a mask to select the bits
1129 .\"O to look at and the bits 17-23 specify the bit pattern to look for.
1130 .\"O If the bit pattern is zero, one or more bits under the mask indicate
1131 .\"O the cleaning request.
1132 .\"O If the pattern is nonzero, the pattern must match
1133 .\"O the masked sense data byte.
1134 2.4.19 ¤ª¤è¤Ó 2.5.43 °Ê¹ß¤Î¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
1135 ¤³¤Î¥É¥é¥¤¥Ð¤Ï¥É¥é¥¤¥Ö¤Î¥¯¥ê¡¼¥Ë¥ó¥°¤¬É¬Íפ«¤É¤¦¤«¤ò¼¨¤¹
1136 ¾õÂ֥ӥåȤò¥µ¥Ý¡¼¥È¤¹¤ë¡£
1137 ¥É¥é¥¤¥Ö¤¬¥¯¥ê¡¼¥Ë¥ó¥°¾ðÊó¤òÊÖ¤µ¤»¤ë¤«¤É¤¦¤«¤Ï¡¢
1138 .B MT_ST_SEL_CLN
1139 ¥µ¥Ö¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÀßÄê¤Ç¤­¤ë¡£
1140 ¤³¤ÎÃͤ¬ 0 ¤À¤È¡¢¥¯¥ê¡¼¥Ë¥ó¥°¥Ó¥Ã¥È¤Ï¾ï¤Ë 0 ¤È¤Ê¤ë¡£
1141 Ãͤò 1 ¤Ë¤¹¤ë¤È¡¢SCSI-3 É¸½à¤Çµ¬Äꤵ¤ì¤Æ¤¤¤ë
1142 TapeAlert ¥Ç¡¼¥¿¤¬ÍѤ¤¤é¤ì¤ë (¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤)
1143 ÃͤȤ·¤Æ¤Ï 2 ¤«¤é 17 ¤¬Í½Ì󤵤ì¤Æ¤¤¤ë¡£
1144 Äã°Ì¦¤Î 8 ¥Ó¥Ã¥È¤¬ 18 °Ê¾å¤À¤È¡¢³ÈÄ¥¾õÂ֥ǡ¼¥¿ (extended sense data)
1145 ¤¬ÍѤ¤¤é¤ì¤ë¡£Âè 9-16 ¥Ó¥Ã¥È¤ÏÃíÌܤ¹¤Ù¤­¥Ó¥Ã¥È¤òÁªÂò¤¹¤ë¤¿¤á¤Î¥Þ¥¹¥¯¤ò»ØÄꤷ¡¢
1146 Âè 17-23 ¥Ó¥Ã¥È¤Ïõ¤¹¤Ù¤­¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤ò»ØÄꤹ¤ë¡£
1147 ¤³¤Î¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤¬ 0 ¤Î¤È¤­¤Ï¡¢
1148 ¥Þ¥¹¥¯²¼¤Î¥Ó¥Ã¥È (·²) ¤¬¥¯¥ê¡¼¥Ë¥ó¥°Í×µá¤ò¼¨¤¹¡£¥Ñ¥¿¡¼¥ó¤¬ 0 ¤Ç¤Ê¤±¤ì¤Ð¡¢
1149 ¤³¤Î¥Ñ¥¿¡¼¥ó¤¬¥Þ¥¹¥¯¸å¤Î¾õÂ֥ǡ¼¥¿¥Ð¥¤¥È¤Ë¥Þ¥Ã¥Á¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1150 .\"O .SS "MTIOCGET \(em Get status"
1151 .SS "MTIOCGET \(em ¥¹¥Æ¡¼¥¿¥¹¤Î¼èÆÀ"
1152 .PP
1153 .\"O This request takes an argument of type
1154 .\"O .IR "(struct mtget *)" .
1155 ¤³¤Î¥ê¥¯¥¨¥¹¥È¤Ï
1156 .IR "(struct mtget *)"
1157 ¤È¤¤¤¦·¿¤Î°ú¿ô¤ò¤È¤ë¡£
1158 .PP
1159 .in +4n
1160 .nf
1161 /* structure for MTIOCGET \- mag tape get status command */
1162 struct mtget {
1163     long     mt_type;
1164     long     mt_resid;
1165     /* the following registers are device dependent */
1166     long     mt_dsreg;
1167     long     mt_gstat;
1168     long     mt_erreg;
1169     /* The next two fields are not always used */
1170     daddr_t  mt_fileno;
1171     daddr_t  mt_blkno;
1172 };
1173 .fi
1174 .in
1175 .IP \fImt_type\fP 11
1176 .\"O The header file defines many values for
1177 .\"O .IR mt_type ,
1178 .\"O but the current driver reports only the generic types
1179 .\"O .B MT_ISSCSI1
1180 .\"O (Generic SCSI-1 tape)
1181 .\"O and
1182 .\"O .B MT_ISSCSI2
1183 .\"O (Generic SCSI-2 tape).
1184 ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ëÃæ¤Ë¤Ï¿¤¯¤Î
1185 .I mt_type
1186 ¤ÎÃͤ¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤¬¡¢¸½¹Ô¤Î¥É¥é¥¤¥Ð¤ÏÈÆÍѤΥ¿¥¤¥×¤Ç¤¢¤ë
1187 .B MT_ISSCSI1
1188 (ÈÆÍÑ SCSI-1 ¥Æ¡¼¥×) ¤ª¤è¤Ó
1189 .B MT_ISSCSI2
1190 (ÈÆÍÑ SCSI-2 ¥Æ¡¼¥×) ¤Î¤ß¤òÊÖ¤¹¡£
1191 .IP \fImt_resid\fP
1192 .\"O contains the current tape partition number.
1193 ¸½ºß¤Î¥Æ¡¼¥×°ÌÃÖÈֹ档
1194 .IP \fImt_dsreg\fP
1195 .\"O reports the drive's current settings for block size (in the low 24
1196 .\"O bits) and density (in the high 8 bits).
1197 .\"O These fields are defined by
1198 .\"O .BR MT_ST_BLKSIZE_SHIFT ,
1199 .\"O .BR MT_ST_BLKSIZE_MASK ,
1200 .\"O .BR MT_ST_DENSITY_SHIFT ,
1201 .\"O and
1202 .\"O .BR MT_ST_DENSITY_MASK .
1203 ¥É¥é¥¤¥Ö¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ÈÌ©Å٤θ½ºß¤ÎÀßÄê¤òÊó¹ð¤¹¤ë
1204 (²¼°Ì 24 ¥Ó¥Ã¥È¤¬¥Ö¥í¥Ã¥¯¥µ¥¤¥º¡¢¾å°Ì 8 ¥Ó¥Ã¥È¤¬Ì©ÅÙ)¡£
1205 ¤³¤ì¤é¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢
1206 .BR MT_ST_BLKSIZE_SHIFT ,
1207 .BR MT_ST_BLKSIZE_MASK ,
1208 .BR MT_ST_DENSITY_SHIFT ,
1209 .BR MT_ST_DENSITY_MASK
1210 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
1211 .IP \fImt_gstat\fP
1212 .\"O reports generic (device independent) status information.
1213 .\"O The header file defines macros for testing these status bits:
1214 ÈÆÍѤΠ(¥Ç¥Ð¥¤¥¹¤Ë°Í¸¤·¤Ê¤¤) ¥¹¥Æ¡¼¥¿¥¹¤òÊó¹ð¤¹¤ë¡£
1215 ¤³¤ì¤é¤Î¥¹¥Æ¡¼¥¿¥¹¥Ó¥Ã¥È¤ò¥Æ¥¹¥È¤¹¤ë¤¿¤á¤Î¥Þ¥¯¥í¤¬
1216 ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
1217 .RS
1218 .HP 4
1219 \fBGMT_EOF\fP(\fIx\fP):
1220 .\"O The tape is positioned just after a filemark
1221 .\"O (always false after an
1222 .\"O .B MTSEEK
1223 .\"O operation).
1224 ¥Æ¡¼¥×¤Ï¥Õ¥¡¥¤¥ë¥Þ¡¼¥¯¤Îľ¸å¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1225 .RB ( MTSEEK
1226 Áàºî¤Î¸å¤Ç¤Ï¾ï¤Ëµ¶)
1227 .HP
1228 \fBGMT_BOT\fP(\fIx\fP):
1229 .\"O The tape is positioned at the beginning of the first file (always false
1230 .\"O after an
1231 .\"O .B MTSEEK
1232 .\"O operation).
1233 ¥Æ¡¼¥×¤ÏºÇ½é¤Î¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1234 .RB ( MTSEEK
1235 Áàºî¤Î¸å¤Ç¤Ï¾ï¤Ëµ¶)
1236 .HP
1237 \fBGMT_EOT\fP(\fIx\fP):
1238 .\"O A tape operation has reached the physical End Of Tape.
1239 ¥Æ¡¼¥×Áàºî¤Ï¥Æ¡¼¥×¤ÎʪÍýŪ¤Ê½ªÅÀ¤Ë㤷¤¿¡£
1240 .HP
1241 \s-1GMT_SM(\s+1\fIx\fP\s-1)\s+1:
1242 .\"O The tape is currently positioned at a setmark
1243 .\"O (always false after an
1244 .\"O .B MTSEEK
1245 .\"O operation).
1246 ¥Æ¡¼¥×¤Ï¸½ºß¥»¥Ã¥È¥Þ¡¼¥¯¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1247 .RB ( MTSEEK
1248 Áàºî¤Î¸å¤Ç¤Ï¾ï¤Ëµ¶)
1249 .HP
1250 \fBGMT_EOD\fP(\fIx\fP):
1251 .\"O The tape is positioned at the end of recorded data.
1252 ¥Æ¡¼¥×¤Ïµ­Ï¿¥Ç¡¼¥¿¤ÎËöÈø¤Ë°ÌÃÖ¤·¤Æ¤¤¤ë¡£
1253 .HP
1254 \fBGMT_WR_PROT\fP(\fIx\fP):
1255 .\"O The drive is write-protected.
1256 .\"O For some drives this can also mean that the drive does not support
1257 .\"O writing on the current medium type.
1258 ¥É¥é¥¤¥Ö¤Ï¥é¥¤¥È¥×¥í¥Æ¥¯¥È¤µ¤ì¤Æ¤¤¤ë¡£
1259 ¤³¤ì¤Ï¥É¥é¥¤¥Ö¤Ë¤è¤Ã¤Æ¤Ï¡¢
1260 ¥É¥é¥¤¥Ö¤¬¸½ºß¤Î¥á¥Ç¥£¥¢¥¿¥¤¥×¤Ø¤Î½ñ¤­¹þ¤ß¤ò
1261 ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤»ö¤ò°ÕÌ£¤¹¤ë¾ì¹ç¤â¤¢¤ë¡£
1262 .HP
1263 \fBGMT_ONLINE\fP(\fIx\fP):
1264 .\"O The last
1265 .\"O .BR open (2)
1266 .\"O found the drive with a tape in place and ready for operation.
1267 ¤â¤Ã¤È¤âºÇ¶á¤Î
1268 .BR open (2)
1269 ¤¬¡¢¥Æ¡¼¥×¤¬Æþ¤Ã¤Æ¤¤¤ÆÁàºî¤Î½àÈ÷¤¬¤Ç¤­¤Æ¤¤¤ë¥É¥é¥¤¥Ö¤ò¸¡ÃΤ·¤¿¡£
1270 .HP
1271 \fBGMT_D_6250\fP(\fIx\fP), \fBGMT_D_1600\fP(\fIx\fP), \fBGMT_D_800\fP(\fIx\fP):
1272 .\"O This \(lqgeneric\(rq status information reports the current
1273 .\"O density setting for 9-track \(12" tape drives only.
1274 ¤³¤Î¡ÖÈÆÍѡפΥ¹¥Æ¡¼¥¿¥¹¾ðÊó¤Ï¡¢
1275 9-¥È¥é¥Ã¥¯ \(12" ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤Î¾ì¹ç¤Ë¤Î¤ß¡¢
1276 ¸½ºß¤ÎÌ©ÅÙ¤ÎÀßÄê¤òÊó¹ð¤¹¤ë¡£
1277 .HP
1278 \fBGMT_DR_OPEN\fP(\fIx\fP):
1279 .\"O The drive does not have a tape in place.
1280 ¥É¥é¥¤¥Ö¤Ë¥Æ¡¼¥×¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¡£
1281 .HP
1282 \fBGMT_IM_REP_EN\fP(\fIx\fP):
1283 .\"O Immediate report mode.
1284 .\"O This bit is set if there are no guarantees that
1285 .\"O the data has been physically written to the tape when the write call
1286 .\"O returns.
1287 .\"O It is set zero only when the driver does not buffer data and
1288 .\"O the drive is set not to buffer data.
1289 ¨»þÊó¹ð¥â¡¼¥É¡£ write ¥³¡¼¥ë¤¬Ìá¤Ã¤¿¤È¤­¡¢
1290 ¥Æ¡¼¥×¤ËÂФ·¤ÆʪÍýŪ¤Ê½ñ¤­¹þ¤ß¤¬¹Ô¤ï¤ì¤¿¤«¤É¤¦¤«¤òÊݾڤǤ­¤Ê¤¤¾ì¹ç¤Ë¡¢
1291 ¤³¤Î¥Ó¥Ã¥È¤¬¥»¥Ã¥È¤µ¤ì¤ë¡£¥É¥é¥¤¥Ð¤¬¥Ç¡¼¥¿¤ò¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤»¤º¡¢
1292 ¥É¥é¥¤¥Ö¤â¥Ç¡¼¥¿¤ò¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤·¤Ê¤¤¾ì¹ç¤Ë¸Â¤Ã¤Æ¡¢
1293 ¤³¤ÎÃͤϠ0 ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
1294 .HP
1295 \fBGMT_CLN\fP(\fIx\fP):
1296 .\"O The drive has requested cleaning.
1297 .\"O Implemented in kernels since 2.4.19 and 2.5.43.
1298 ¥É¥é¥¤¥Ö¤¬¥¯¥ê¡¼¥Ë¥ó¥°¤òÍ׵ᤷ¤Æ¤¤¤ë¡£
1299 ¥«¡¼¥Í¥ë 2.4.19 ¤ª¤è¤Ó 2.5.43 °Ê¹ß¤Ç¼ÂÁõ¤µ¤ì¤¿¡£
1300 .RE
1301 .IP \fImt_erreg\fP
1302 .\"O The only field defined in
1303 .\"O .I mt_erreg
1304 .\"O is the recovered error count in the low 16 bits (as defined by
1305 .\"O .BR MT_ST_SOFTERR_SHIFT
1306 .\"O and
1307 .\"O .BR MT_ST_SOFTERR_MASK .
1308 .\"O Due to inconsistencies in the way drives report recovered errors, this
1309 .\"O count is often not maintained (most drives do not by default report
1310 .\"O soft errors but this can be changed with a SCSI MODE SELECT command).
1311 .I mt_erreg
1312 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥Õ¥£¡¼¥ë¥É¤Ï°ì¤Ä¤À¤±¤Ç¡¢
1313 ²¼°Ì¤Î 16 ¥Ó¥Ã¥È¤¬¥¨¥é¡¼¤ò¥ê¥«¥Ð¡¼¤·¤¿²ó¿ô¤Ç¤¢¤ë
1314 .RB ( MT_ST_SOFTERR_SHIFT
1315 ¤È
1316 .B MT_ST_SOFTERR_MASK
1317 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë)¡£
1318 ¥É¥é¥¤¥Ö¤ÎÊó¹ð¤¹¤ë¥¨¥é¡¼¥ê¥«¥Ð¡¼¿ô¤ÈÌ·½â¤¹¤ë¤³¤È¤¬¤¢¤ë¤Î¤Ç¡¢
1319 ¤³¤Î¿ô¤Ï¤Û¤È¤ó¤É¤Î¾ì¹ç°Ý»ý¤µ¤ì¤Ê¤¤
1320 (¤Û¤È¤ó¤É¤Î¥É¥é¥¤¥Ö¤Ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥½¥Õ¥È¥¨¥é¡¼¤òÊó¹ð¤·¤Ê¤¤¡£
1321 ¤·¤«¤·¤³¤ì¤Ï SCSI MODE SELECT ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÊѹ¹¤Ç¤­¤ë)¡£
1322 .IP \fImt_fileno\fP
1323 .\"O reports the current file number (zero-based).
1324 .\"O This value is set to \-1 when the file number is unknown (e.g., after
1325 .\"O .BR MTBSS
1326 .\"O or
1327 .\"O .BR MTSEEK ).
1328 (¥¼¥í¤«¤é¿ô¤¨¤¿) ¸½ºß¤Î¥Õ¥¡¥¤¥ëÈÖ¹æ¤òÊó¹ð¤¹¤ë¡£
1329 ¥Õ¥¡¥¤¥ëÈֹ椬¤ï¤«¤é¤Ê¤¤»þ (Î㤨¤Ð
1330 .B MTBSS
1331 ¤ä
1332 .B MTSEEK
1333 ¤Î¸å¤Ê¤É) ¤Ë¤Ï \-1 ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
1334 .IP \fImt_blkno\fP
1335 .\"O reports the block number (zero-based) within the current file.
1336 .\"O This value is set to \-1 when the block number is unknown (e.g., after
1337 .\"O .BR MTBSF ,
1338 .\"O .BR MTBSS ,
1339 .\"O or
1340 .\"O .BR MTSEEK ).
1341 ¸½ºß¤Î¥Õ¥¡¥¤¥ëÃæ¤Î(¥¼¥í¤«¤é¿ô¤¨¤¿)¥Ö¥í¥Ã¥¯ÈÖ¹æ¤òÊó¹ð¤¹¤ë¡£
1342 ¥Ö¥í¥Ã¥¯Èֹ椬¤ï¤«¤é¤Ê¤¤»þ (Î㤨¤Ð
1343 .BR MTBSF ,
1344 .BR MTBSS ,
1345 .BR MTSEEK
1346 ¤Î¸å¤Ê¤É) ¤Ë¤Ï \-1 ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¡£
1347 .PD
1348 .\"O .SS "MTIOCPOS \(em Get tape position"
1349 .SS "MTIOCPOS \(em ¥Æ¡¼¥×°ÌÃ֤μèÆÀ"
1350 .PP
1351 .\"O This request takes an argument of type
1352 .\"O .I "(struct mtpos *)"
1353 .\"O and reports the drive's notion of the current tape block number,
1354 .\"O which is not the same as
1355 .\"O .I mt_blkno
1356 .\"O returned by
1357 .\"O .BR MTIOCGET .
1358 .\"O This drive must be a SCSI-2 drive that supports the
1359 .\"O .B "READ POSITION"
1360 .\"O command (device-specific address)
1361 .\"O or a Tandberg-compatible SCSI-1 drive (Tandberg, Archive
1362 .\"O Viper, Wangtek, ... ).
1363 ¤³¤Î¥ê¥¯¥¨¥¹¥È¤Ï
1364 .I "(struct mtpos *)"
1365 ·¿¤Î°ú¿ô¤ò¤È¤ê¡¢¥É¥é¥¤¥Ö¤¬ÊÝ»ý¤·¤Æ¤¤¤ë¸½ºß¤Î¥Æ¡¼¥×¥Ö¥í¥Ã¥¯ÈÖ¹æ¤òÊó¹ð¤¹¤ë¡£
1366 ¤³¤ì¤Ï¡¢
1367 .B MTIOCGET
1368 ¤Ë¤è¤êÊÖ¤µ¤ì¤ë
1369 .I mt_blkno
1370 ¤ÈƱ¤¸¤Ç¤Ï¤Ê¤¤¡£
1371 ¥É¥é¥¤¥Ö¤Ï
1372 .B "READ POSITION"
1373 ¥³¥Þ¥ó¥É (¥Ç¥Ð¥¤¥¹¸ÇÍ­¥¢¥É¥ì¥¹)
1374 ¤ò¥µ¥Ý¡¼¥È¤¹¤ë SCSI-2¥É¥é¥¤¥Ö¤«¡¢
1375 Tandberg ¸ß´¹¤Î SCSI-1 ¥É¥é¥¤¥Ö
1376 (Tandberg, Archive, Viper, Wangtek, ... ) ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
1377 .PP
1378 .in +4n
1379 .nf
1380 /* structure for MTIOCPOS \- mag tape get position command */
1381 struct mtpos {
1382     long mt_blkno;    /* current block number */
1383 };
1384 .fi
1385 .in
1386 .\"O .SH "RETURN VALUE"
1387 .SH ÊÖ¤êÃÍ
1388 .TP 14
1389 .TP
1390 .B EACCES
1391 .\"O An attempt was made to write or erase a write-protected tape.
1392 .\"O (This error is not detected during
1393 .\"O .BR open (2).)
1394 ½ñ¤­¹þ¤ßÊݸ¤ì¤Æ¤¤¤ë¥Æ¡¼¥×¤Ë½ñ¤­¹þ¤ß¤Þ¤¿¤Ï¾Ãµî¤ò¹Ô¤ª¤¦¤È¤·¤¿¡£
1395 (¤³¤Î¥¨¥é¡¼¤Ï
1396 .BR open (2)
1397 Ãæ¤Ë¤Ï¸¡ÃΤµ¤ì¤Ê¤¤¡£)
1398 .TP
1399 .B EBUSY
1400 .\"O The device is already in use or the driver was unable to allocate a
1401 .\"O buffer.
1402 ¥Ç¥Ð¥¤¥¹¤¬¤¹¤Ç¤Ë»È¤ï¤ì¤Æ¤¤¤ë¤«¡¢
1403 ¥É¥é¥¤¥Ð¤¬¥Ð¥Ã¥Õ¥¡¤ò³äÅö¤Æ¤é¤ì¤Ê¤«¤Ã¤¿¡£
1404 .TP
1405 .B EFAULT
1406 .\"O The command parameters point to memory not belonging to the calling
1407 .\"O process.
1408 ¥³¥Þ¥ó¥É¤Î°ú¿ô¤¬¡¢
1409 ¸Æ¤Ó¤À¤·¥×¥í¥»¥¹¤Ë°¤·¤Æ¤¤¤Ê¤¤¥á¥â¥ê°ÌÃÖ¤ò»Ø¤·¤Æ¤¤¤ë¡£
1410 .TP
1411 .B EINVAL
1412 .\"O An
1413 .\"O .BR ioctl (2)
1414 .\"O had an invalid argument, or a requested block size was invalid.
1415 .BR ioctl (2)
1416 ¤Î°ú¿ô¤¬ÉÔÀµ¤Ç¤¢¤ë¤«¡¢Í׵ᤷ¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬ÉÔÀµ¡£
1417 .TP
1418 .B EIO 14
1419 .\"O The requested operation could not be completed.
1420 Í׵ᤵ¤ì¤¿Áàºî¤¬ºÇ¸å¤Þ¤Ç¹Ô¤¨¤Ê¤«¤Ã¤¿¡£
1421 .TP
1422 .B ENOMEM
1423 .\"O The byte count in
1424 .\"O .BR read (2)
1425 .\"O is smaller than the next physical block on the tape.
1426 .\"O (Before 2.2.18 and 2.4.0-test6 the extra bytes have been
1427 .\"O silently ignored.)
1428 .BR read (2)
1429 ¤Î¥Ð¥¤¥È¿ô¤¬¡¢¥Æ¡¼¥×¤Ë¤¢¤ë¼¡¤ÎʪÍý¥Ö¥í¥Ã¥¯¤è¤ê¾®¤µ¤¤
1430 (2.2.18 ¤ª¤è¤Ó 2.4.0-test6 °ÊÁ°¤Ç¤Ï¡¢ÌۤäÆ;ʬ¤Î¥Ð¥¤¥È¤ò̵»ë¤·¤Æ¤¤¤¿)¡£
1431 .TP
1432 .B ENOSPC
1433 .\"O A write operation could not be completed because the tape reached
1434 .\"O end-of-medium.
1435 ¥á¥Ç¥£¥¢¤Î½ªÅÀ¤Ë㤷¤¿¤¿¤á¡¢½ñ¤­¹þ¤ßÁàºî¤¬´°Î»¤·¤Ê¤«¤Ã¤¿¡£
1436 .TP
1437 .B ENOSYS
1438 .\"O Unknown
1439 .\"O .BR ioctl (2).
1440 ÉÔÌÀ¤Ê
1441 .BR ioctl (2)¡£
1442 .TP
1443 .B ENXIO
1444 .\"O During opening, the tape device does not exist.
1445 ¥ª¡¼¥×¥ó¤¹¤ë»þ¤Ë¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¡£
1446 .TP
1447 .B EOVERFLOW
1448 .\"O An attempt was made to read or write a variable-length block that is
1449 .\"O larger than the driver's internal buffer.
1450 ¥É¥é¥¤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤è¤êÂ礭¤¤¥µ¥¤¥º¤Î²ÄÊÑĹ¥Ö¥í¥Ã¥¯¤ò
1451 Æɤ߽ñ¤­¤·¤è¤¦¤È¤·¤¿¡£
1452 .TP
1453 .B EROFS
1454 .\"O Open is attempted with
1455 .\"O .B O_WRONLY
1456 .\"O or
1457 .\"O .B O_RDWR
1458 .\"O when the tape in the drive is write-protected.
1459 ¥É¥é¥¤¥Ö¤ËÆþ¤Ã¤Æ¤¤¤ë¥Æ¡¼¥×¤¬¥é¥¤¥È¥×¥í¥Æ¥¯¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¡¢
1460 .B O_WRONLY
1461 ¤Þ¤¿¤Ï
1462 .B O_RDWR
1463 ¤Ç open ¤ò¹Ô¤ª¤¦¤È¤·¤¿¡£
1464 .\"O .SH FILES
1465 .SH ¥Õ¥¡¥¤¥ë
1466 .TP 12
1467 .\"O .I /dev/st*
1468 .\"O the auto-rewind SCSI tape devices
1469 .I /dev/st*
1470 ¼«Æ°´¬¤­Ìᤷ¤Î SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¡£
1471 .TP 12
1472 .\"O .I /dev/nst*
1473 .\"O the nonrewind SCSI tape devices
1474 .I /dev/nst*
1475 ´¬¤­Ìᤷ¤ò¤·¤Ê¤¤ SCSI ¥Æ¡¼¥×¥Ç¥Ð¥¤¥¹¡£
1476 .\"O .\" .SH AUTHOR
1477 .\" .SH Ãø¼Ô
1478 .\"O .\" The driver has been written by Kai M\(:akisara (Kai.Makisara@metla.fi)
1479 .\"O .\" starting from a driver written by Dwayne Forsyth.
1480 .\"O .\" Several other
1481 .\"O .\" people have also contributed to the driver.
1482 .\" ¤³¤Î¥É¥é¥¤¥Ð¤Ï
1483 .\" Dwayne Forsyth ¤Î½ñ¤¤¤¿¥É¥é¥¤¥Ð¤ò¤â¤È¤Ë¤·¤Æ
1484 .\" Kai M\(:akisara (Kai.Makisara@metla.fi) ¤¬½ñ¤¤¤¿¡£
1485 .\" Â¾¤Ë¤â²¿¿Í¤«¤Î¿Í¡¹¤¬¤³¤Î¥É¥é¥¤¥Ð¤Ë¹×¸¥¤·¤Æ¤­¤¿¡£
1486 .\"O .SH NOTES
1487 .SH Ãí°Õ
1488 .IP 1. 4
1489 .\"O When exchanging data between systems, both systems have to agree on
1490 .\"O the physical tape block size.
1491 .\"O The parameters of a drive after startup
1492 .\"O are often not the ones most operating systems use with these
1493 .\"O devices.
1494 .\"O Most systems use drives in variable-block mode if the drive
1495 .\"O supports that mode.
1496 .\"O This applies to most modern drives, including
1497 .\"O DATs, 8mm helical scan drives, DLTs, etc.
1498 .\"O It may be advisable to use
1499 .\"O these drives in variable-block mode also in Linux (i.e., use
1500 .\"O .B MTSETBLK
1501 .\"O or
1502 .\"O .B MTSETDEFBLK
1503 .\"O at system startup to set the mode), at least when
1504 .\"O exchanging data with a foreign system.
1505 .\"O The drawback of
1506 .\"O this is that a fairly large tape block size has to be used to get
1507 .\"O acceptable data transfer rates on the SCSI bus.
1508 °Û¤Ê¤ë¥·¥¹¥Æ¥à¤Ç¥Ç¡¼¥¿¤òÁê¸ß¤Ë¤ä¤ê¤È¤ê¤¹¤ë¾ì¹ç¡¢
1509 ξÊý¤Î¥·¥¹¥Æ¥à¤ÇʪÍýŪ¤Ê¥Æ¡¼¥×¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò°ìÃפµ¤»¤ëɬÍפ¬¤¢¤ë¡£
1510 µ¯Æ°Ä¾¸å¤Î¥É¥é¥¤¥Ö¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¡¢Âç¿¿ô¤Î OS ¤¬¤½¤Î¥Ç¥Ð¥¤¥¹¤ËÂФ·¤Æ
1511 ÍѤ¤¤Æ¤¤¤ëÃͤȰۤʤäƤ¤¤ë¤³¤È¤â¤è¤¯¤¢¤ë¡£Â¿¤¯¤Î¥·¥¹¥Æ¥à¤Ï¡¢
1512 ¥É¥é¥¤¥Ö¤¬Âбþ¤·¤Æ¤¤¤ì¤Ð²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤òÍѤ¤¤ë¡£ DAT¡¢
1513 8mm ¥Ø¥ê¥«¥ë¥¹¥­¥ã¥ó¥É¥é¥¤¥Ö¡¢ DLT ¤Ê¤É¤ÎºÇ¶á¤Î¥É¥é¥¤¥Ö¤Î
1514 ¤Û¤È¤ó¤É¤Ï²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤ËÂбþ¤·¤Æ¤¤¤ë¤«¤é¡£
1515 ¤³¤ì¤é¤Î¥É¥é¥¤¥Ö¤Ï (¾¯¤Ê¤¯¤È¤â¾¤Î¥·¥¹¥Æ¥à¤È¤Î¥Ç¡¼¥¿¸ò´¹¤¬
1516 ¤¢¤ë¾ì¹ç¤Ï)¡¢ Linux ¤Ç¤â²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ç»È¤¦¤Û¤¦¤¬
1517 Îɤ¤¤«¤â¤·¤ì¤Ê¤¤ (¤Ä¤Þ¤ê¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Î¥â¡¼¥ÉÀßÄê¤Ë
1518 .B MTSETBLK
1519 ¤Þ¤¿¤Ï
1520 .B MTSETDEFBLK
1521 ¤òÍѤ¤¤ë)¡£
1522 ·çÅÀ¤È¤·¤Æ¤Ï¡¢Èæ³ÓŪÂ礭¤Ê¥Æ¡¼¥×¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤òÍѤ¤¤Ê¤±¤ì¤Ð¡¢
1523 SCSI ¥Ð¥¹¾å¤ÇËþ­¤Î¤¤¤¯Å¾Á÷®ÅÙ¤¬ÆÀ¤é¤ì¤Ê¤¤¤³¤È¤Ç¤¢¤ë¡£
1524 .IP 2.
1525 .\"O Many programs (e.g.,
1526 .\"O .BR tar (1))
1527 .\"O allow the user to specify the blocking
1528 .\"O factor on the command line.
1529 .\"O Note that this determines the physical block
1530 .\"O size on tape only in variable-block mode.
1531 ¿¤¯¤Î¥×¥í¥°¥é¥à
1532 .RB ( tar (1)
1533 ¤Ê¤É) ¤Ç¤Ï¡¢
1534 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¥æ¡¼¥¶¤¬¥Ö¥í¥Ã¥¯´ØÏ¢¤ÎÃͤò»ØÄê¤Ç¤­¤ë¡£
1535 ¤³¤ÎÃͤˤè¤Ã¤Æ¥Æ¡¼¥×¾å¤ÎʪÍýŪ¤Ê¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò·èÄê¤Ç¤­¤ë¤Î¤Ï¡¢
1536 ²ÄÊÑĹ¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ë¸Â¤é¤ì¤ë¤³¤È¤ËÃí°Õ¡£
1537 .IP 3.
1538 .\"O In order to use SCSI tape drives, the basic SCSI driver,
1539 .\"O a SCSI-adapter driver and the SCSI tape driver must be either
1540 .\"O configured into the kernel or loaded as modules.
1541 .\"O If the SCSI-tape
1542 .\"O driver is not present, the drive is recognized but the tape support
1543 .\"O described in this page is not available.
1544 SCSI ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤òÍѤ¤¤ë¤Ë¤Ï¡¢´ðËܤΠSCSI ¥É¥é¥¤¥Ð¡¢
1545 SCSI ¥¢¥À¥×¥¿¤Î¥É¥é¥¤¥Ð¡¢ SCSI ¥Æ¡¼¥×¥É¥é¥¤¥Ð¤Î¤¹¤Ù¤Æ¤¬
1546 ¥«¡¼¥Í¥ë¤ËÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤«¡¢¤¢¤ë¤¤¤Ï¥â¥¸¥å¡¼¥ë¤È¤·¤Æ¥í¡¼¥É¤µ¤ì¤Æ¤¤¤ë
1547 ɬÍפ¬¤¢¤ë¡£ SCSI ¥Æ¡¼¥×¥É¥é¥¤¥Ð¤¬¤Ê¤¤¤È¡¢
1548 ¥É¥é¥¤¥Ö¤Ïǧ¼±¤µ¤ì¤ë¤¬¡¢
1549 ¤³¤Î¥Ú¡¼¥¸¤Çµ­½Ò¤µ¤ì¤Æ¤¤¤ë¥Æ¡¼¥×¤Î¥µ¥Ý¡¼¥È¤ÏÍøÍѤǤ­¤Ê¤¤¡£
1550 .IP 4.
1551 .\"O The driver writes error messages to the console/log.
1552 .\"O The SENSE
1553 .\"O codes written into some messages are automatically translated to text
1554 .\"O if verbose SCSI messages are enabled in kernel configuration.
1555 ¥É¥é¥¤¥Ð¤Ï¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò¥³¥ó¥½¡¼¥ë¤È¥í¥°¤È¤Ë½ñ¤­½Ð¤¹¡£
1556 ¥«¡¼¥Í¥ëÀßÄê¤Ç verbose SCSI messages ¤¬Í­¸ú¤Ë¤µ¤ì¤Æ¤¤¤ë¤È¡¢
1557 SENSE ¥³¡¼¥É¤¬¼«Æ°Åª¤Ë¥Æ¥­¥¹¥È¤ËÊÑ´¹¤µ¤ì¤Æ¡¢
1558 ¤¤¤¯¤Ä¤«¤Î¥á¥Ã¥»¡¼¥¸¤Ë½ñ¤­¤À¤µ¤ì¤ë¡£
1559 .IP 5.
1560 .\"O The driver's internal buffering allows good throughput in fixed-block
1561 .\"O mode also with small
1562 .\"O .BR read (2)
1563 .\"O and
1564 .\"O .BR write (2)
1565 .\"O byte counts.
1566 .\"O With direct transfers
1567 .\"O this is not possible and may cause a surprise when moving to the 2.6
1568 .\"O kernel.
1569 .\"O The solution is to tell the software to use larger transfers (often
1570 .\"O telling it to use larger blocks).
1571 .\"O If this is not possible, direct transfers can be disabled.
1572 ¤³¤Î¥É¥é¥¤¥Ð¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤Ï¡¢¸ÇÄê¥Ö¥í¥Ã¥¯¥â¡¼¥É¤Ê¤é
1573 .BR read (2)
1574 ¤ä
1575 .BR write (2)
1576 ¤Î¥Ð¥¤¥È¿ô¤¬¾®¤µ¤¯¤Æ¤âÎɤ¤¥¹¥ë¡¼¥×¥Ã¥È¤ò½Ð¤¹¡£
1577 ľÀÜžÁ÷¤Ç¤Ï¤³¤ì¤ÏÉÔ²Äǽ¤Ê¤Î¤Ç¡¢2.6 ¥«¡¼¥Í¥ë¤Ë°Ü¹Ô¤·¤¿¤È¤­¤Ë¶Ã¤¯¤«¤â¤·¤ì¤Ê¤¤¡£
1578 ²ò·èË¡¤È¤·¤Æ¤Ï¡¢¥½¥Õ¥È¥¦¥§¥¢¤Ë¤è¤êÂ礭¤ÊžÁ÷¤ò¹Ô¤¦¤è¤¦ÅÁ¤¨¤ë
1579 (¤¿¤¤¤Æ¤¤¤Ï¤è¤êÂ礭¤Ê¥Ö¥í¥Ã¥¯¤ò»È¤ï¤»¤ë) ¤³¤È¤Ç¤¢¤ë¡£
1580 ¤³¤ì¤¬ÉÔ²Äǽ¤Ê¤é¡¢Ä¾ÀÜžÁ÷¤ò̵¸ú¤Ë¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
1581 .\"O .SH COPYRIGHT
1582 .\" .SH Ãøºî¸¢
1583 .\" Copyright \(co 1995 Robert K. Nichols.
1584 .\" .br
1585 .\" Copyright \(co 1999-2005 Kai M\(:akisara.
1586 .\" .PP
1587 .\" Permission is granted to make and distribute verbatim copies of this
1588 .\" manual provided the copyright notice and this permission notice are
1589 .\" preserved on all copies.
1590 .\" Additional permissions are contained in the header of the source file.
1591 .\"O .SH "SEE ALSO"
1592 .SH ´ØÏ¢¹àÌÜ
1593 .BR mt (1)
1594 .PP
1595 .\"O The file
1596 .\"O .I drivers/scsi/README.st
1597 .\"O or
1598 .\"O .I Documentation/scsi/st.txt
1599 .\"O (kernel >= 2.6) in the kernel sources contains
1600 .\"O the most recent information about the driver and its configuration
1601 .\"O possibilities.
1602 ¥«¡¼¥Í¥ë¥½¡¼¥¹¤Î
1603 .I drivers/scsi/README.st
1604 ¤ä
1605 .I Documentation/scsi/st.txt
1606 (¥«¡¼¥Í¥ë 2.6 °Ê¹ß) ¤Î³Æ¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢
1607 ¥É¥é¥¤¥Ð¤Ë´Ø¤¹¤ë¤è¤ê¿·¤·¤¤¾ðÊó¤ä¡¢
1608 ¤½¤ÎÀßÄê²Äǽ¤ÊÈϰϤ˴ؤ¹¤ëÆâÍƤ¬´Þ¤Þ¤ì¤Æ¤¤¤ë¡£