OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man4 / sd.4
1 .\" sd.4
2 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .\"
32 .\" Japanese Version Copyright (c) 1996,1997 ISHIKAWA Mutsumi
33 .\"         all rights reserved.
34 .\" Translated 1997-02-06, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
35 .\" Updated 2005-11-19, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
36 .\"
37 .TH SD 4 2012\-05\-03 Linux "Linux Programmer's Manual"
38 .SH 名前
39 sd \- SCSI ディスクドライブのためのドライバ
40 .SH 書式
41 .nf
42 \fB#include <linux/hdreg.h>        \fP/* for HDIO_GETGEO */
43 \fB#include <linux/fs.h>           \fP/* for BLKGETSIZE and BLKRRPART */
44 .fi
45 .SH 設定
46 このブロックデバイス (block device) の名前は、次のような形式をとる: \fBsd\fP\fIlp,\fP このうち、 \fIl\fP
47 は物理ドライブを意味する文字であり、 \fIp\fP はその物理ドライブ上のパーティション (partition) を意味する数字である。
48 パーティションナンバー \fIp\fP がない場合は、そのデバイスファイルはドライブ全体をさす。
49
50 SCSI ディスクはメジャーナンバー 8 を持ち、次のような形式のマイナーナンバー を持つ。(16 * \fIdrive_number\fP) +
51 \fIpartition_number\fP、 この \fIdrive_number\fP は検出された物理ドライブの番号であり、
52 \fIpartition_number\fP は次のようになる:
53 .sp
54 パーティション 0 はドライブ全体
55 .br
56 パーティション 1 〜 4 は DOS の "基本 (primary)" パーティション
57 .br
58 パーティション 5 〜 8 は DOS の "拡張 (extended)" (または、"論理 (logical)") パーティション。
59
60 例えば、 \fI/dev/sda\fP はメジャーナンバー 8 マイナーナンバー 0 を持ち、システムの最初の SCSI ドライブ全体を参照する。そして、
61 \fI/dev/sdb3\fP はメジャーナンバー 8 マイナーナンバー 19 を持ち、システムの二つ目の SCSI ドライブの三番目の DOS "基本"
62 パーティションを参照する。
63
64 現在は、ブロックデバイスだけが提供されている。ローデバイス (raw device)  はまだ実装されていない。
65 .SH 説明
66 次の \fIioctl\fP が提供されている:
67 .TP 
68 \fBHDIO_GETGEO\fP
69 .RS
70 次のような構造体を用いて BIOS のディスクパラメーターを返す:
71 .in +4n
72 .nf
73
74 struct hd_geometry {
75     unsigned char  heads;
76     unsigned char  sectors;
77     unsigned short cylinders;
78     unsigned long  start;
79 };
80 .fi
81 .in
82
83 この構造体へのポインターが \fBioctl\fP(2)  へのパラメーターとして渡される。
84
85 このパラメーターに入れられて返される情報は、 \fIDOS によって理解されるような\fP ドライブのジオメトリである。
86 このジオメトリは、ドライブの物理的なジオメトリ \fIではない。\fP この情報はドライブのパーティションテーブルを作成する時に用いられる、 また、
87 \fBfdisk\fP(1), \fBefdisk\fP(1), \fBlilo\fP(1)  の適切な操作に必要である。
88 もし、ジオメトリの情報が得られなければ、それぞれの値全てにゼロが入れ られて返される。
89 .RE
90 .TP 
91 \fBBLKGETSIZE\fP
92 セクタの数で表したデバイスのサイズが返される。 \fBioctl\fP(2)  のパラメーターは、 \fIlong\fP へのポインターでなければならない。
93 .TP 
94 \fBBLKRRPART\fP
95 強制的に、SCSI ディスクのパーティションテーブルの再読み込みを行う。 パラメーターは必要ない。
96
97 SCSI の \fBioctl\fP(2) 操作も同様にサポートされる。 \fBioctl\fP(2) の
98 パラメーターが必要で、そのパラメーターが NULL の場合は、
99 \fBioctl\fP(2) はエラー \fBEINVAL\fP で失敗する。
100 .SH ファイル
101 /dev/sd[a\-h]: ドライブ全体
102 .br
103 .\".SH "SEE ALSO"
104 .\".BR scsi (4)
105 /dev/sd[a\-h][0\-8]: 個々のブロックパーティション
106 .SH この文書について
107 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
108 である。プロジェクトの説明とバグ報告に関する情報は
109 http://www.kernel.org/doc/man\-pages/ に書かれている。