Manual Page Result
0
Command: fmount | Section: 2 | Source: UNIX v10 | File: fmount.2
FMOUNT(2) System Calls Manual FMOUNT(2)
NAME
fmount, funmount - mount or remove file system
SYNOPSIS
int fmount(type, fildes, name, flag)
char *name;
int funmount(name)
char *name;
DESCRIPTION
Fmount mounts a file system of the named type described by the file de-
scriptor fildes on pathname name. Henceforth, references to name (the
mount point) will refer to the root file on the newly mounted file sys-
tem.
Name must already exist. Its old contents are inaccessible while the
file system is mounted.
The meaning of flag varies with the file system type.
Allowed types are
0 Regular (block device) file system. Fildes must be a block spe-
cial file. If flag is nonzero, the file system may not be writ-
ten on; this must be used with physically write-protected media
or errors will occur when access times are updated, even if no
explicit write is attempted.
2 Process file system, proc(4). Fildes is ignored.
3 Mounted stream. Fildes must refer to a stream; future calls to
open(2) on name will reopen that stream. The mount is undone if
the other end of the stream is closed or hung up.
4 Stream (network) file system. Fildes is a stream connected to a
file system server, netfs(8).
Types 5 and 6 are used internally to close off errors and for pipes;
these types may not be mounted.
Funmount removes knowledge of the file system mounted at name. The
mount point reverts to its previous interpretation.
The userid owning name may mount or unmount file systems of type 3 or
4. For other types, these calls are restricted to the super-user.
SEE ALSO
mount(8), netfs(8), proc(4), stream(4)
DIAGNOSTICS
EBADF, EBUSY, EINVAL, EIO, ENODEV
BUGS
Although fildes for type 2 file systems is ignored, it must be a valid
file descriptor.
FMOUNT(2)