source: trunk/minix/man/man2/mount.2@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.3 KB
Line 
1.TH MOUNT 2
2.SH NAME
3mount, umount \- mount or umount a file system
4.SH SYNOPSIS
5.ft B
6.nf
7#include <unistd.h>
8#include <sys/mount.h>
9
10int mount(char *\fIspecial\fP, char *\fIname\fP, int \fIflag\fP)
11int umount(char *\fIname\fP)
12.fi
13.ft P
14.SH DESCRIPTION
15.B Mount()
16tells the system that the file system
17.I special
18is to be mounted on the file
19.IR name ,
20effectively overlaying
21.I name
22with the file tree on
23.IR special .
24.I Name
25may of any type, except that if the root of
26.I special
27is a directory, then
28.I name
29must also be a directory.
30.I Special
31must be a block special file, except for loopback mounts. For loopback
32mounts a normal file or directory is used for
33.IR special ,
34which must be seen as the root of a virtual device.
35.I Flag
36is 0 for a read-write mount, 1 for read-only.
37.PP
38.B Umount()
39removes the connection between a device and a mount point,
40.I name
41may refer to either of them. If more than one device is mounted on the
42same mount point then unmounting at the mount point removes the last mounted
43device, unmounting a device removes precisely that device. The unmount will
44only succeed if none of the files on the device are in use.
45.PP
46Both calls may only be executed by the super-user.
47.SH "SEE ALSO"
48.BR mount (1),
49.BR umount (1).
50.SH AUTHOR
51Kees J. Bot (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.