MTAB(5) BSD MTAB(5)
NAME
mtab - mounted file system table
SYNOPSIS
#include <fstab.h>
#include <mtab.h>
DESCRIPTION
/etc/mtab is a link to `node_data/etc/mnttab, which contains a table of
devices mounted by the mount command. umount removes entries.
The table is a series of mntent structures, which <mtab.h> defines like
this:
struct mntent{
char *mnt_fsname; /* name of mounted file system */
char *mnt_dir; /* file system path prefix */
char *mnt_type; /* MNTTYPE_* */
char *mnt_opts; /* MNTOPT* */
time_t mnt_time; /* Time of mount */
int mnt_freq; /* dump frequency, in days */
int mnt_passno; /* pass number on parallel fsck */
};
mnt_type indicates if the file system is mounted read-only or read-write.
mnt_freq and mnt_passno are not used.
This table is present for reference only. It does not matter to mount if
there are duplicated entries, nor to umount if a name cannot be found.
FILES
/etc/mtab
SEE ALSO
mount(8).