2 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" Japanese Version Copyright (c) 1996,1997 ISHIKAWA Mutsumi
25 .\" all rights reserved.
26 .\" Translated 1997-02-06, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
27 .\" Updated 2005-11-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
29 .\" WORD: pointer ポインタ
30 .\" WORD: structure 構造体
31 .\" WORD: geometry ジオメトリ
33 .\" WORD: implement 実装
34 .\" WORD: raw device ローデバイス
36 .TH SD 4 1992-12-17 "Linux" "Linux Programmer's Manual"
39 .\"O sd \- Driver for SCSI Disk Drives
40 sd \- SCSI ディスクドライブのためのドライバ
44 .BR "#include <linux/hdreg.h> " "/* for HDIO_GETGEO */"
45 .BR "#include <linux/fs.h> " "/* for BLKGETSIZE and BLKRRPART */"
47 .\"O .SH CONFIGURATION
49 .\"O The block device name has the following form:
53 .\"O is a letter denoting the physical drive, and
55 .\"O is a number denoting the partition on that physical drive.
56 .\"O Often, the partition number,
58 .\"O will be left off when the device corresponds to the whole drive.
59 このブロックデバイス (block device) の名前は、次のような形式をとる:
65 はその物理ドライブ上のパーティション (partition) を意味する数字である。
68 がない場合は、そのデバイスファイルはドライブ全体をさす。
70 .\"O SCSI disks have a major device number of 8, and a minor device number of
72 .\"O .IR drive_number ") + " partition_number ,
75 .\"O is the number of the physical drive in order of detection, and
76 .\"O .I partition_number
78 SCSI ディスクはメジャーナンバー 8 を持ち、次のような形式のマイナーナンバー
80 .IR drive_number ") + " partition_number 、
87 .\"O partition 0 is the whole drive
89 .\"O partitions 1-4 are the DOS "primary" partitions
91 .\"O partitions 5-8 are the DOS "extended" (or "logical") partitions
94 パーティション 1 〜 4 は DOS の "基本 (primary)" パーティション
96 パーティション 5 〜 8 は DOS の "拡張 (extended)" (または、"論理
101 .\"O will have major 8, minor 0, and will refer to all of the first SCSI drive
102 .\"O in the system; and
104 .\"O will have major 8, minor 19, and will refer to the third DOS "primary"
105 .\"O partition on the second SCSI drive in the system.
108 はメジャーナンバー 8 マイナーナンバー 0 を持ち、システムの最初の SCSI
111 はメジャーナンバー 8 マイナーナンバー 19 を持ち、システムの二つ目の
112 SCSI ドライブの三番目の DOS "基本" パーティションを参照する。
114 .\"O At this time, only block devices are provided.
115 .\"O Raw devices have not yet been implemented.
116 現在は、ブロックデバイスだけが提供されている。ロー・デバイス (raw device)
129 .\"O Returns the BIOS disk parameters in the following structure:
130 次のような構造体を用いて BIOS のディスクパラメータを返す:
136 unsigned char sectors;
137 unsigned short cylinders;
143 .\"O A pointer to this structure is passed as the
150 .\"O The information returned in the parameter is the disk geometry of the drive
151 .\"O .I "as understood by DOS!"
152 .\"O This geometry is
154 .\"O the physical geometry of the drive.
155 .\"O It is used when constructing the
156 .\"O drive's partition table, however, and is needed for convenient operation
162 .\"O If the geometry information is not available, zero will be returned for all
163 .\"O of the parameters.
164 このパラメータに入れられて返される情報は、
165 .I "DOS によって理解されるような"
167 このジオメトリは、ドライブの物理的なジオメトリ
169 この情報はドライブのパーティションテーブルを作成する時に用いられる、
175 もし、ジオメトリの情報が得られなければ、それぞれの値全てにゼロが入れ
180 .\"O Returns the device size in sectors.
183 .\"O parameter should be a pointer to a
185 セクタの数で表したデバイスのサイズが返される。
192 .\"O Forces a reread of the SCSI disk partition tables.
193 .\"O No parameter is needed.
194 強制的に、SCSI ディスクのパーティションテーブルの再読み込みを行う。
200 .\"O operations are also supported.
203 .\"O parameter is required, and it is NULL, then
205 .\"O will fail with the error
212 のパラメータが必要で、それが NULL ならば、
219 .\"O /dev/sd[a\-h]: the whole device
220 /dev/sd[a\-h]: ドライブ全体
222 .\"O /dev/sd[a\-h][0\-8]: individual block partitions
223 /dev/sd[a\-h][0\-8]: 個々のブロックパーティション
224 .\"O .\".SH "SEE ALSO"