fstyp(1M) fstyp(1M)
NAME [Toc] [Back]
fstyp - determine file system type
SYNOPSIS [Toc] [Back]
/usr/sbin/fstyp [-v] special
DESCRIPTION [Toc] [Back]
The fstyp command allows the user to determine the file system type of
a mounted or unmounted file system. special represents a device
special file (for example: /dev/dsk/c1t6d0).
The file system type is determined by reading the superblock of the
supplied special file. If the superblock is read successfully, the
command prints the file system type identifier on the standard output
and exits with an exit status of 0. If the type of the file system
cannot be identified, the error message unknown_fstyp (no matches) is
printed and the exit status is 1. Exit status 2 is not currently
returned, but is reserved for the situation where the file system
matches more than one file system type. Any other error will cause
exit status 3 to be returned.
The file system type is determined by reading the superblock of the
supplied special file.
Options [Toc] [Back]
-v Produce verbose output. The output contains
information about the file system's superblock.
RETURN VALUE [Toc] [Back]
fstyp returns the following values:
0 Successful completion.
1 Unknown file system type.
2 File system matches more than one type.
3 Usage error or access problem.
EXAMPLES [Toc] [Back]
Find the type of the file system on a disk, /dev/dsk/c1t6d0:
fstyp /dev/dsk/c1t6d0
Find the type of the file system on a logical volume, /dev/vg00/lvol6:
fstyp /dev/vg00/lvol6
Find the file system type for a particular device file and also
information about its super block:
fstyp -v /dev/dsk/c1t6d0
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
fstyp(1M) fstyp(1M)
SEE ALSO [Toc] [Back]
stat(2), statvfsdev(3C).
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 [ Back ] |