summaryrefslogtreecommitdiff
path: root/usr/src/man/man7d/dad.7d
blob: 6f1d9312c4fd32d46735b9f00ab8b312c764ddaa (plain)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
'\" te
.\" Copyright 2004 Sun Microsystems, Inc. All rights reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH DAD 7D "Oct 24, 2005"
.SH NAME
dad \- driver for IDE disk devices
.SH SYNOPSIS
.LP
.nf
\fBdad@\fR \fItarget\fR,\fIlun\fR:\fIpartition\fR
.fi

.SH DESCRIPTION
.sp
.LP
This driver handles the ide disk drives on SPARC platforms. The type of disk
drive is determined using the ATA IDE identify device command and by reading
the volume label stored on the drive. The \fBdad\fR device driver supports the
Solaris SPARC VTOC and the EFI/GPT disk volume labels.
.sp
.LP
The block-files access the disk using the system's normal buffering mechanism
and are read and written without  regard to physical disk records. There is
also a "raw" interface that provides for direct transmission between the disk
and the user's read or write buffer.  A single read or write call usually
results in one I/O operation; raw I/O is therefore considerably more efficient
when many bytes are transmitted.  The names of the block files are found in
\fB/dev/dsk\fR. Raw file names are found in  \fB/dev/rdsk\fR.
.sp
.LP
I/O requests to the raw device must be aligned on a 512-byte (\fBDEV_BSIZE\fR)
boundary and must have a length that is a multiple of 512 bytes. Requests that
do not meet the restrictions cause the driver to return an \fBEINVAL\fR error.
I/O requests to the block device have no alignment or length restrictions.
.SS "Device Statistics Support"
.sp
.LP
Each device maintains I/O statistics both for the device and for each partition
allocated on that device. For each device/partition, the driver accumulates
reads, writes, bytes read, and bytes written. The driver also takes
hi-resolution time stamps at queue entry and exit points, which facilitates
monitoring the residence time and cumulative  residence-length product for each
queue.
.sp
.LP
Each device also has error statistics associated with it. These must include
counters for hard errors, soft errors and transport errors. Other data may be
implemented as required.
.SH FILES
.sp
.ne 2
.na
\fB\fB/dev/dsk/c\fR\fIn\fR\fBt\fR\fIn\fR\fBd\fR\fIn\fR\fBs\fR\fIn\fR \fR
.ad
.RS 23n
block files
.RE

.sp
.ne 2
.na
\fB\fB/dev/rdsk/c\fR\fIn\fR\fBt\fR\fIn\fR\fBd\fR\fIn\fR\fBs\fR\fIn\fR \fR
.ad
.RS 23n
raw files
.RE

.sp
.LP
where:
.sp
.ne 2
.na
\fB\fBc\fR\fIn\fR \fR
.ad
.RS 7n
controller  \fIn\fR
.RE

.sp
.ne 2
.na
\fB\fBt\fR\fIn\fR \fR
.ad
.RS 7n
IDE target id  \fIn\fR (0-3)
.RE

.sp
.ne 2
.na
\fB\fBd\fR\fIn\fR \fR
.ad
.RS 7n
Always 0.
.RE

.sp
.ne 2
.na
\fB\fBs\fR\fIn\fR \fR
.ad
.RS 7n
partition  \fIn\fR (0-7)
.RE

.sp
.LP
The target ide numbers are assigned as:
.sp
.ne 2
.na
\fB0\fR
.ad
.RS 5n
Master disk on Primary channel.
.RE

.sp
.ne 2
.na
\fB1\fR
.ad
.RS 5n
Slave disk on Primary channel.
.RE

.sp
.ne 2
.na
\fB2\fR
.ad
.RS 5n
Master disk on Secondary channel
.RE

.sp
.ne 2
.na
\fB3\fR
.ad
.RS 5n
Slave disk on Secondary channel.
.RE

.SH IOCTLS
.sp
.LP
Refer to \fBdkio\fR(7I).
.SH ERRORS
.sp
.ne 2
.na
\fB\fBEACCES\fR \fR
.ad
.RS 11n
Permission denied.
.RE

.sp
.ne 2
.na
\fB\fBEBUSY\fR \fR
.ad
.RS 11n
The partition was opened exclusively by another thread.
.RE

.sp
.ne 2
.na
\fB\fBEFAULT\fR \fR
.ad
.RS 11n
Argument was a bad address.
.RE

.sp
.ne 2
.na
\fB\fBEINVAL\fR \fR
.ad
.RS 11n
Invalid argument.
.RE

.sp
.ne 2
.na
\fB\fBEIO\fR \fR
.ad
.RS 11n
 I/O error occurred.
.RE

.sp
.ne 2
.na
\fB\fBENOTTY\fR \fR
.ad
.RS 11n
The device does not  support the requested ioctl function.
.RE

.sp
.ne 2
.na
\fB\fBENXIO\fR \fR
.ad
.RS 11n
The device did not exist during opening.
.RE

.sp
.ne 2
.na
\fB\fBEROFS\fR \fR
.ad
.RS 11n
The device is a read-only device.
.RE

.SH SEE ALSO
.sp
.LP
\fBformat\fR(1M), \fBmount\fR(1M), \fBlseek\fR(2), \fBread\fR(2),
\fBwrite\fR(2), \fBdriver.conf\fR(4), \fBvfstab\fR(4), \fBdkio\fR(7I)
.sp
.LP
X3T10 ATA-4 specifications.
.SH DIAGNOSTICS
.sp
.ne 2
.na
\fB\fBCommand:<\fInumber\fR>\fR, Error:<\fInumber\fR>, Status:<\fInumber\fR>\fR
.ad
.sp .6
.RS 4n
Indicates that the command failed with an error and provides status register
contents. Where <\fInumber\fR> is a hexadecimal value.
.RE

.sp
.ne 2
.na
\fB\fBoffline\fR \fR
.ad
.sp .6
.RS 4n
The driver has decided that the target disk is no longer there.
.RE

.sp
.ne 2
.na
\fB\fBdisk ok\fR \fR
.ad
.sp .6
.RS 4n
The target disk is now responding again.
.RE

.sp
.ne 2
.na
\fB\fBdisk not responding to selection\fR \fR
.ad
.sp .6
.RS 4n
The target disk is not responding.
.RE

.sp
.ne 2
.na
\fB\fBi/o to invalid geometry\fR \fR
.ad
.sp .6
.RS 4n
The geometry of the drive could not be established.
.RE

.sp
.ne 2
.na
\fB\fBincomplete read/write - retrying/giving up\fR \fR
.ad
.sp .6
.RS 4n
There was a residue after the command completed normally.
.RE

.sp
.ne 2
.na
\fB\fBno bp for disk label\fR \fR
.ad
.sp .6
.RS 4n
A bp with consistent memory could not be allocated.
.RE

.sp
.ne 2
.na
\fB\fBno memory for disk label\fR \fR
.ad
.sp .6
.RS 4n
Free memory pool exhausted.
.RE

.sp
.ne 2
.na
\fB\fBATA transport failed: reason 'nnnn': {retrying|giving}\fR \fR
.ad
.sp .6
.RS 4n
The host adapter has failed to transport a command to the target for the reason
stated. The driver will either retry the command or, ultimately, give up.
.RE

.sp
.ne 2
.na
\fB\fBno mem for property\fR \fR
.ad
.sp .6
.RS 4n
Free memory pool exhausted.
.RE

.sp
.ne 2
.na
\fB\fBtransport rejected (<n>)\fR \fR
.ad
.sp .6
.RS 4n
Host adapter driver was unable to accept a command.
.RE

.sp
.ne 2
.na
\fB\fBDevice Fault\fR \fR
.ad
.sp .6
.RS 4n
Device fault - reason for such error is vendor specific.
.RE