1dad(7D) Devices dad(7D)
2
3
4
6 dad - driver for IDE disk devices
7
9 dad@ target,lun:partition
10
11
13 This driver handles the ide disk drives on SPARC platforms. The type of
14 disk drive is determined using the ATA IDE identify device command and
15 by reading the volume label stored on the drive. The dad device driver
16 supports the Solaris SPARC VTOC and the EFI/GPT disk volume labels.
17
18
19 The block-files access the disk using the system's normal buffering
20 mechanism and are read and written without regard to physical disk
21 records. There is also a "raw" interface that provides for direct
22 transmission between the disk and the user's read or write buffer. A
23 single read or write call usually results in one I/O operation; raw I/O
24 is therefore considerably more efficient when many bytes are transmit‐
25 ted. The names of the block files are found in /dev/dsk. Raw file
26 names are found in /dev/rdsk.
27
28
29 I/O requests to the raw device must be aligned on a 512-byte
30 (DEV_BSIZE) boundary and must have a length that is a multiple of 512
31 bytes. Requests that do not meet the restrictions cause the driver to
32 return an EINVAL error. I/O requests to the block device have no align‐
33 ment or length restrictions.
34
35 Device Statistics Support
36 Each device maintains I/O statistics both for the device and for each
37 partition allocated on that device. For each device/partition, the
38 driver accumulates reads, writes, bytes read, and bytes written. The
39 driver also takes hi-resolution time stamps at queue entry and exit
40 points, which facilitates monitoring the residence time and cumulative
41 residence-length product for each queue.
42
43
44 Each device also has error statistics associated with it. These must
45 include counters for hard errors, soft errors and transport errors.
46 Other data may be implemented as required.
47
49 /dev/dsk/cntndnsn block files
50
51
52 /dev/rdsk/cntndnsn raw files
53
54
55
56 where:
57
58 cn controller n
59
60
61 tn IDE target id n (0-3)
62
63
64 dn Always 0.
65
66
67 sn partition n (0-7)
68
69
70
71 The target ide numbers are assigned as:
72
73 0 Master disk on Primary channel.
74
75
76 1 Slave disk on Primary channel.
77
78
79 2 Master disk on Secondary channel
80
81
82 3 Slave disk on Secondary channel.
83
84
86 Refer to dkio(7I).
87
89 EACCES Permission denied.
90
91
92 EBUSY The partition was opened exclusively by another thread.
93
94
95 EFAULT Argument was a bad address.
96
97
98 EINVAL Invalid argument.
99
100
101 EIO I/O error occurred.
102
103
104 ENOTTY The device does not support the requested ioctl function.
105
106
107 ENXIO The device did not exist during opening.
108
109
110 EROFS The device is a read-only device.
111
112
114 format(1M), mount(1M), lseek(2), read(2), write(2), driver.conf(4),
115 vfstab(4), dkio(7I)
116
117
118 X3T10 ATA-4 specifications.
119
121 Command:<number>, Error:<number>, Status:<number>
122
123 Indicates that the command failed with an error and provides status
124 register contents. Where <number> is a hexadecimal value.
125
126
127 offline
128
129 The driver has decided that the target disk is no longer there.
130
131
132 disk ok
133
134 The target disk is now responding again.
135
136
137 disk not responding to selection
138
139 The target disk is not responding.
140
141
142 i/o to invalid geometry
143
144 The geometry of the drive could not be established.
145
146
147 incomplete read/write - retrying/giving up
148
149 There was a residue after the command completed normally.
150
151
152 no bp for disk label
153
154 A bp with consistent memory could not be allocated.
155
156
157 no memory for disk label
158
159 Free memory pool exhausted.
160
161
162 ATA transport failed: reason 'nnnn': {retrying|giving}
163
164 The host adapter has failed to transport a command to the target
165 for the reason stated. The driver will either retry the command or,
166 ultimately, give up.
167
168
169 no mem for property
170
171 Free memory pool exhausted.
172
173
174 transport rejected (<n>)
175
176 Host adapter driver was unable to accept a command.
177
178
179 Device Fault
180
181 Device fault - reason for such error is vendor specific.
182
183
184
185
186SunOS 5.11 24 Oct 2005 dad(7D)