fstypes(4) fstypes(4)
NAME
fstypes - name-mapping information for file systems
SYNOPSIS
#include <sys/fstypent.h>
DESCRIPTION
/etc/fstypes contains information about file-system types.
It can be modified by the system administrator using a text
editor. The file is used by commands that need to know the
type of a specified file system. It is also used by com-
mands to determine the location of file-system-dependent
utilities.
The /etc/fstypes file consists of lines in the following
format:
numeric-type name-list [pathname-list]
For example:
0 5.2,svfs,s5 /etc/fs/5.2:/etc/fs/svfs
The fields are separated by white space; a # as the first
character indicates a comment. A # after name-list or
path-list indicates that the rest of the line is a comment.
The placeholder numeric-type is the integer type that is
passed to fsmount. See fsmount(2). These are defined in
<sys/mount.h>. The name-list is a comma-separated list of
character strings that describe the file-system type. At
least one of these is defined in <mntent.h>. The pathname-
list is a colon-separated list of pathnames. These path-
names indicate where utility programs associated with the
file-system type reside. If this field is empty, the de-
fault location is /etc/fs/name-list.
The entries in this file are accessed using fstypent, which
reads the next entry from the file and returns a pointer to
a struct fstypent. This structure is defined in
<sys/fstypent>as:
struct fstypent {
int fstype;
char **typelist;
char *pathlist;
};
FILES
/etc/fstypes
SEE ALSO
getmntent(3), fstypent(3), fs(4), fstab(4).
April, 1990 1