1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
.\" sd.4
.\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH SD 4 "17. Dezember 1992" Linux Linux\-Programmierhandbuch
.SH BEZEICHNUNG
sd \- Treiber für SCSI\-Platten
.SH ÜBERSICHT
.nf
\fB#include <linux/hdreg.h> \fP/* für HDIO_GETGEO */
\fB#include <linux/fs.h> \fP/* für BLKGETSIZE und BLKRRPART */
.fi
.SH KONFIGURATION
Der Name für das blockorientierte Gerät hat die Form: \fBsd\fP\fIlp\fP. Darin gibt
\fIl\fP das physikalische Laufwerk und \fIp\fP die Partitionsnummer darauf an. Die
Partitionsnummer wird weggelassen, wenn das ganze Laufwerk angesprochen
werden soll.
SCSI\-Platten haben eine Haupt\-Gerätenummer (Major Device Number) von 8 und
eine Neben\-Gerätenummer (Minor Device Number) der Form (16 *
\fILaufwerksnummer\fP) + \fIPartitionsnummer\fP. Die \fILaufwerksnummer\fP entspricht
der Nummer des physikalischen Laufwerks in der Reihenfolge der
Erkennung. Die \fIPartitionsnummer\fP wird wie folgt angegeben:
.sp
Partition 0 ist das ganze Laufwerk;
.br
Partition 1\-4 sind die »primären« DOS\-Partitionen;
.br
Partition 5\-8 sind »erweiterte« (oder »logische«) DOS\-Partitionen.
Beispielsweise ist für \fI/dev/sda\fP Major 8, Minor 0 und bezieht sich auf das
gesamte erste SCSI\-Laufwerk im System. \fI/dev/sdb3\fP hat Major 8, Minor 19
und bezieht sich auf die dritte »primäre« DOS\-Partition des zweiten
SCSI\-Laufwerkes im System.
Derzeit werden nur blockorientierte Geräte unterstützt. Direkter
Gerätezugriff ist noch nicht implementiert.
.SH BESCHREIBUNG
Die folgenden Aufrufe von \fBioctl\fP(2) werden unterstützt:
.TP
\fBHDIO_GETGEO\fP
.RS
Liefert die BIOS\-Plattenparameter in der folgenden Struktur:
.in +4n
.nf
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};
.fi
.in
Ein Zeiger auf diese Struktur wird als Parameter an \fBioctl\fP(2) übergeben.
Die in diesem Parameter gelieferten Informationen entsprechen der
Plattengeometrie des Laufwerkes, \fIwie sie von DOS verstanden wird!\fP Diese
Geometrie entspricht \fInicht\fP der physikalischen Geometrie des
Laufwerks. Sie werden bei der Erstellung der Partitionstabelle des Laufwerks
verwendet und betreffen die Programme \fBfdisk\fP(1), \fBefdisk\fP(1) und
\fBlilo\fP(8). Wenn die Geometrie nicht ermittelt werden kann, wird für alle
Parameter Null zurückgegeben.
.RE
.TP
\fBBLKGETSIZE\fP
Ergibt die Gerätegröße in Sektoren. Der Parameter für \fBioctl\fP(2) sollte ein
Zeiger auf eine Variable des Datentyps \fBlong\fP sein.
.TP
\fBBLKRRPART\fP
Erzwingt ein erneutes Lesen der Partitionstabelle der SCSI\-Platte. Keine
Parameter erforderlich.
Die \fBscsi\fP(4)\- und \fBioctl\fP(2)\-Operationen werden ebenfalls
unterstützt. Wird der \fBioctl\fP(2)\-Parameter benötigt und dieser ist NULL, so
wird \fBioctl\fP(2) mit dem Fehler \fBEINVAL\fP fehlschlagen.
.SH DATEIEN
\fI/dev/sd[a\-h]\fP: das ganze Gerät
.br
.\".SH "SEE ALSO"
.\".BR scsi (4)
\fI/dev/sd[a\-h][0\-8]\fP: individuelle Partitionen
.SH KOLOPHON
Diese Seite ist Teil der Veröffentlichung 3.25 des Projekts
Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts und Informationen, wie
Fehler gemeldet werden können, finden sich unter
http://www.kernel.org/doc/man\-pages/.
.SH ÜBERSETZUNG
Die deutsche Übersetzung dieser Handbuchseite wurde von
Norbert Kümin <norbert.kuemin@lugs.ch>,
Martin Schulze <joey@infodrom.org>
und
Martin Eberhard Schauer <Martin.E.Schauer@gmx.de>
erstellt.
Diese Übersetzung ist Freie Dokumentation; lesen Sie die
GNU General Public License Version 3 oder neuer bezüglich der
Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen.
Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden,
schicken Sie bitte eine E-Mail an <debian-l10n-german@lists.debian.org>.
|