MNTTAB(4) — HP-UX
NAME
mnttab − mounted file system table
SYNOPSIS
#include <mnttab.h>
DESCRIPTION
Mnttab resides in directory /etc and contains a table of devices, mounted by the mount[HFS](1M) command. The file contains a line of information for each mounted filesystem, structurally identical to the contents of /etc/checklist, described in checklist(4).
There are a number of lines of the form:
special_file_name dir type opts freq passno mount_time
For example:
/dev/dsk/c0d0s0 / hfs rw 0 1 537851723
The file is accessed by programs using getmntent(3X), and by the system administrator using a text editor.
Mount_time contains the time the file system was mounted using mount[HFS](1M). The value is the number of seconds since 00:00:00 GMT, January 1, 1970; see time(2).
The maximum number of hfs entries in mnttab is based on the system parameter NMOUNT located in <mnttab.h>, which defines the number of allowable mounted special files.
WARNINGS
The table is present only for programs to return information about the mounted file systems. It does not matter to mount if there are duplicated entries nor to umount if a name cannot be found.
DEPENDENCIES
Series 500, 800
The table of devices found in the /etc/mnttab binary file is structured in the following manner:
#include <sys/types.h>
struct mnttab {
| char | mt_dev[MNTLEN]; | /* device name */ |
| char | mt_filsys[MNTLEN]; | /* mount point directory */ |
| short | mt_ro_flg; | /* read-only flag */ |
| time_t | mt_time; | /* date last mounted */ |
};
AUTHOR
Mnttab was developed by the University of California, Berkeley, Sun Microsystems, Inc., and HP.
FILES
/etc/mnttab
SEE ALSO
checklist(4), getmntent(3X), mount[HFS](1M), setmnt(1M).
Hewlett-Packard Company — Version B.1, May 11, 2021