OSDN Git Service

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