BSD 4_2 development
[unix-history] / usr / man / man5 / mtab.5
CommitLineData
8112f3d2
C
1.TH MTAB 5 "26 June 1983"
2.UC 4
3.SH NAME
4mtab \- mounted file system table
5.SH SYNOPSIS
6.B "#include <fstab.h>
7.br
8.B "#include <mtab.h>"
9.SH DESCRIPTION
10.I Mtab
11resides in directory
12.I /etc
13and contains a table of devices mounted by the
14.I mount
15command.
16.I Umount
17removes entries.
18.PP
19The table is a series of
20.I mtab
21structures, as defined in
22.IR < mtab.h >.
23Each entry contains the null-padded name of
24the place where the special file is mounted,
25the null-padded name of the special file, and
26a type field, one of those defined in
27.RI < fstab.h >.
28The special file has all its directories
29stripped away;
30that is, everything through the last `/' is thrown
31away. The type field indicates if the file system
32is mounted read-only, read-write, or read-write with
33disk quotas enabled.
34.PP
35This table is present only so people can look at it.
36It does not matter to
37.I mount
38if there are duplicated entries nor
39to
40.I umount
41if a name cannot be found.
42.SH FILES
43/etc/mtab
44.SH "SEE ALSO"
45mount(8)