bind, mount, unmount – change name space|
bind [ option ... ] new old
Bind and mount modify the file name space of the current process
and other processes in the same name space group (see fork(2)).
For both calls, old is the name of an existing file or directory
in the current name space where the modification is to be made.
(none) Replace the old file by the new one. Henceforth, an evaluation of old will be translated to the new file. If they are directories (for mount, this condition is true by definition), old becomes a union directory consisting of one directory (the new file).
–b Both files must be directories. Add the new directory to the beginning of the union directory represented by the old file.
–a Both files must be directories. Add the new directory to the end of the union directory represented by the old file.
–c This can be used in addition to any of the above to permit creation in a union directory. When a new file is created in a union directory, it is placed in the first element of the union that has been bound or mounted with the –c flag. If that directory does not have write permission, the create fails. –C (Only in mount.) By default, file contents are always retrieved from the server. With this option, the kernel may instead use a local cache to satisfy read(5) requests for files accessible through this mount point. The currency of cached data for a file is verified at each open(5) of the file from this client machine. –q Exit silently if the bind or mount operation fails.
To compile a program with the C library from July 16, 1992:|
bind(2), open(2), srv(3), srv(4)|