6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / devinfo.1m
blob7a45d8c9105a1b4b46fdcb521e98fbebdf1a1051
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DEVINFO 1M "May 8, 1997"
7 .SH NAME
8 devinfo \- print device specific information
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/devinfo\fR \fB-i\fR \fIdevice\fR
13 .fi
15 .LP
16 .nf
17 \fB/usr/sbin/devinfo\fR \fB-p\fR \fIdevice\fR
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
23 The \fBdevinfo\fR command is used to print device specific information about
24 disk devices on standard out. The command can only be used by the superuser.
25 .SH OPTIONS
26 .sp
27 .ne 2
28 .na
29 \fB\fB-i\fR\fR
30 .ad
31 .RS 6n
32 Prints the following device information:
33 .RS +4
34 .TP
35 .ie t \(bu
36 .el o
37 Device name
38 .RE
39 .RS +4
40 .TP
41 .ie t \(bu
42 .el o
43 Software version (not supported and prints as \fB0\fR)
44 .RE
45 .RS +4
46 .TP
47 .ie t \(bu
48 .el o
49 Drive id number (not supported and prints as \fB0\fR)
50 .RE
51 .RS +4
52 .TP
53 .ie t \(bu
54 .el o
55 Device blocks per cylinder
56 .RE
57 .RS +4
58 .TP
59 .ie t \(bu
60 .el o
61 Device bytes per block
62 .RE
63 .RS +4
64 .TP
65 .ie t \(bu
66 .el o
67 Number of device partitions with a block size greater than zero
68 .RE
69 .RE
71 .sp
72 .ne 2
73 .na
74 \fB\fB-p\fR\fR
75 .ad
76 .RS 6n
77 Prints the following device partition information:
78 .RS +4
79 .TP
80 .ie t \(bu
81 .el o
82 Device name
83 .RE
84 .RS +4
85 .TP
86 .ie t \(bu
87 .el o
88 Device major and minor numbers (in hexadecimal)
89 .RE
90 .RS +4
91 .TP
92 .ie t \(bu
93 .el o
94 Partition start block
95 .RE
96 .RS +4
97 .TP
98 .ie t \(bu
99 .el o
100 Number of blocks allocated to the partition
102 .RS +4
104 .ie t \(bu
105 .el o
106 Partition flag
108 .RS +4
110 .ie t \(bu
111 .el o
112 Partition tag
118 This command is used by various other commands to obtain device specific
119 information for the making of file systems and determining partition
120 information. If the device cannot be opened, an error message is reported.
121 .SH OPERANDS
123 .ne 2
125 \fB\fIdevice\fR\fR
127 .RS 10n
128 Device name.
131 .SH EXIT STATUS
133 .ne 2
135 \fB\fB0\fR\fR
137 .RS 5n
138 Successful operation.
142 .ne 2
144 \fB\fB2\fR\fR
146 .RS 5n
147 Operation failed.
150 .SH SEE ALSO
153 \fBprtvtoc\fR(1M), \fBattributes\fR(5)