Penguin
Annotated edit history of sd(4) version 1 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 perry 1 SD
2 !!!SD
3 NAME
4 SYNOPSIS
5 CONFIG
6 DESCRIPTION
7 FILES
8 ----
9 !!NAME
10
11
12 sd - Driver for SCSI Disk Drives
13 !!SYNOPSIS
14
15
16 #include
17 !!CONFIG
18
19
20 The block device name has the following form:
21 __sd__''lp,'' where ''l'' is a letter denoting the
22 physical drive, and ''p'' is a number denoting the
23 partition on that physical drive. Often, the partition
24 number, ''p'', will be left off when the device
25 corresponds to the whole drive.
26
27
28 SCSI disks have a major device number of 8, and a minor
29 device number of the form (16 * ''drive_number'') +
30 ''partition_number'', where ''drive_number'' is the
31 number of the physical drive in order of detection, and
32 ''partition_number'' is as follows:
33
34
35 partition 0 is the whole drive
36 partitions 1-4 are the DOS
37 partitions 5-8 are the DOS
38
39
40 For example, __/dev/sda__ will have major 8, minor 0, and
41 will refer to all of the first SCSI drive in the system; and
42 __/dev/sdb3__ will have major 8, minor 19, and will refer
43 to the third DOS
44 __
45
46
47 At this time, only block devices are provided. Raw devices
48 have not yet been implemented.
49 !!DESCRIPTION
50
51
52 The following ''ioctl''s are provided:
53
54
55 HDIO_GETGEO
56
57
58 Returns the BIOS disk parameters in the following
59 structure:
60
61
62 __struct hd_geometry {
63 unsigned char heads;
64 unsigned char sectors;
65 unsigned short cylinders;
66 unsigned long start;
67 };
68 __
69
70
71 A pointer to this structure is passed as the ioctl(2)
72 parameter.
73
74
75 The information returned in the parameter is the disk
76 geometry of the drive ''as understood by DOS!'' This
77 geometry is ''not'' the physical geometry of the drive.
78 It is used when constructing the drive's partition table,
79 however, and is needed for convenient operation of
80 fdisk(1),efdisk(1), and lilo(1). If the
81 geometry information is not available, zero will be returned
82 for all of the parameters.
83
84
85 BLKGETSIZE
86
87
88 Returns the device size in sectors. The ioctl(2)
89 parameter should be a pointer to a __long__.
90
91
92 BLKRRPART
93
94
95 Forces a re-read of the SCSI disk partition tables. No
96 parameter is needed.
97
98
99 The scsi(4) ''ioctl''s are also supported. If the
100 ioctl(2) parameter is required, and it is NULL, then
101 ''ioctl''() will return -EINVAL.
102 !!FILES
103
104
105 /dev/sd[[a-h]: the whole device
106 /dev/sd[[a-h][[0-8]: individual block partitions
107 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.