2005-05-02 15:01:42 +02:00
|
|
|
.TH MOUNT 2
|
|
|
|
.SH NAME
|
|
|
|
mount, umount \- mount or umount a file system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.ft B
|
|
|
|
.nf
|
|
|
|
#include <sys/mount.h>
|
|
|
|
|
2014-03-17 14:01:22 +01:00
|
|
|
int minix_mount(char *\fIspecial\fP, char *\fIname\fP, int \fImountflags\fP, int \fIsrvflags\fP, char *\fItype\fP, char *\fIargs\fP)
|
|
|
|
int minix_umount(char *\fIname\fP, int \fIsrvflags)
|
2005-05-02 15:01:42 +02:00
|
|
|
.fi
|
|
|
|
.ft P
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B Mount()
|
|
|
|
tells the system that the file system
|
|
|
|
.I special
|
|
|
|
is to be mounted on the file
|
|
|
|
.IR name ,
|
|
|
|
effectively overlaying
|
|
|
|
.I name
|
|
|
|
with the file tree on
|
|
|
|
.IR special .
|
|
|
|
.I Name
|
|
|
|
may of any type, except that if the root of
|
|
|
|
.I special
|
|
|
|
is a directory, then
|
|
|
|
.I name
|
|
|
|
must also be a directory.
|
|
|
|
.I Special
|
2010-01-13 00:08:50 +01:00
|
|
|
must be a block special file, or a NULL pointer.
|
|
|
|
If a NULL pointer is passed, the file system is
|
|
|
|
mounted without a block device.
|
|
|
|
.I Mountflags
|
|
|
|
may be a bitwise combination of the following flags:
|
|
|
|
.TP 2
|
2013-08-20 01:37:18 +02:00
|
|
|
.B MNT_RDONLY
|
2010-01-13 00:08:50 +01:00
|
|
|
Mount file system read-only, rather than read-write.
|
2013-08-20 01:37:18 +02:00
|
|
|
.PP
|
|
|
|
.I Srvflags
|
|
|
|
may be a bitwise combination of the following flags:
|
|
|
|
.TP 2
|
2010-01-13 00:08:50 +01:00
|
|
|
.B MS_REUSE
|
|
|
|
Reuse the file system server image if possible.
|
2010-11-23 20:34:56 +01:00
|
|
|
.TP
|
|
|
|
.B MS_EXISTING
|
|
|
|
Do not start the file system server, but use existing one. The label of
|
|
|
|
the running file server is specified in
|
|
|
|
.I Type.
|
2010-01-13 00:08:50 +01:00
|
|
|
.PP
|
2009-05-13 17:39:44 +02:00
|
|
|
.I Type
|
|
|
|
is the type of the file system (e.g. "mfs"), used to pick a file system server.
|
|
|
|
If this parameter is NULL, the default type is used.
|
|
|
|
.I Args
|
|
|
|
is a string with arguments passed to the file system server.
|
|
|
|
Their interpretation is up to the server.
|
|
|
|
This parameter may be NULL as well.
|
2005-05-02 15:01:42 +02:00
|
|
|
.PP
|
|
|
|
.B Umount()
|
|
|
|
removes the connection between a device and a mount point,
|
|
|
|
.I name
|
|
|
|
may refer to either of them. If more than one device is mounted on the
|
|
|
|
same mount point then unmounting at the mount point removes the last mounted
|
|
|
|
device, unmounting a device removes precisely that device. The unmount will
|
|
|
|
only succeed if none of the files on the device are in use.
|
2013-08-20 01:37:18 +02:00
|
|
|
.I Srvflags
|
2010-11-23 20:34:56 +01:00
|
|
|
may be a bitwise combination of the following flags:
|
|
|
|
.TP 2
|
|
|
|
.B MS_EXISTING
|
|
|
|
Umount the file system but do not terminate the the file system server.
|
|
|
|
.PP
|
|
|
|
.TO
|
|
|
|
These calls may only be executed by the super-user.
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR mount (1),
|
|
|
|
.BR umount (1).
|
|
|
|
.SH AUTHOR
|
|
|
|
Kees J. Bot (kjb@cs.vu.nl)
|