2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 1989 AT&T
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH FSTYP 1M "Dec 19, 2007"
9 fstyp \- determine file system type
13 \fBfstyp\fR [\fB-a\fR | \fB-v\fR] \fIspecial\fR [:\fIlogical-drive\fR]
19 \fBfstyp\fR allows the user to determine the file system type of unmounted file
20 systems using heuristic programs.
23 An \fBfstyp\fR module for each file system type to be checked is executed; each
24 of these modules applies an appropriate heuristic to determine whether the
25 supplied \fIspecial\fR file is of the type for which it checks. If it is, the
26 program prints on standard output the usual file system identifier for that
27 type (for example, ``ufs'') and exits with a return code of \fB0\fR; if none of
28 the modules succeed, the error message \fBunknown_fstyp (no matches)\fR is
29 returned and the exit status is \fB1\fR. If more than one module succeeds, the
30 error message \fBunknown_fstyp (multiple matches)\fR is returned and the exit
31 status is \fB2\fR. Other errors are printed in the same format.
34 This command is unreliable and its results should not be used to make any
35 decisions about subsequent use of a storage device or disk partition.
43 Output all available file system attributes. If a file system has been
44 successfully identified, and this option is specified, the \fIFSType\fR
45 identifier is followed by one or more "name-value" pairs, one per line, in the
55 The following conventions are recognized for the file system attributes:
60 String values are put in single quotes.
66 Nested "name-value" list increases the indentation of its values by four
73 For an array of "name-value" pairs, one array entry is printed per line, with
74 the index following the name in square brackets.
76 For instance, in the following example, "\fItop_list\fR" is a "name-value"
77 list, consisting of a string array "\fIstring_array\fR" and a "name-value" list
78 array "\fIlist_array\fR". The second "list_array"element is an integer array
79 "\fIint_array\fR" containing three elements.
98 In addition to the \fIFSType\fR-specific attributes, the following generic
99 attributes may be present:
103 \fB\fIgen_clean\fR\fR
106 Allowable values are "true" or "false". If the value is "false", the file
107 system is damaged or was not unmounted cleanly and the \fBfsck\fR(1M) command
108 must be run before this file system can be mounted.
117 Globally unique identifier. This string uniquely identifies the file system.
123 \fB\fIgen_version\fR\fR
126 A string describing the file system version.
132 \fB\fIgen_volume_label\fR\fR
135 Volume label, a human-readable string used to either describe or identify the
147 Produce verbose output. This is usually information about the file systems
148 superblock and varies across different \fIFSTypes\fR. See \fBufs\fR(7FS),
149 \fBmkfs_ufs\fR(1M), and \fBtunefs\fR(1M) for details.
155 See \fBlargefile\fR(5) for the description of the behavior of \fBfstyp\fR when
156 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
160 \fBfsck\fR(1M), \fBmkfs_ufs\fR(1M), \fBtunefs\fR(1M), \fBattributes\fR(5),
161 \fBlibfstyp\fR(3LIB), \fBlargefile\fR(5), \fBhsfs\fR(7FS), \fBufs\fR(7FS),
166 The use of heuristics implies that the result of\fBfstyp\fR is not guaranteed
170 This command is unreliable and its results should not be used to make any
171 decisions about subsequent use of a storage device or disk partition.