~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man2/mount.2

  • Committer: Package Import Robot
  • Author(s): Loïc Minier
  • Date: 2011-10-17 13:06:22 UTC
  • mfrom: (1.1.46 upstream) (2.2.11 sid)
  • Revision ID: package-import@ubuntu.com-20111017130622-rbdw3julnma2baqu
Tags: 3.32-0.2ubuntu1
* Merge from Debian testing/unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.
* Keep Debian's glibc-doc version in the Replaces as it's satisfactory for
  upgrades from natty and lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
.\" 2.6.25 Added MS_I_VERSION, which needs to be documented.
102
102
.\"
103
103
.TP
104
 
.BR MS_BIND " (Linux 2.4 onwards)"
 
104
.BR MS_BIND " (Linux 2.4 onward)"
105
105
.\" since 2.4.0-test9
106
106
Perform a bind mount, making a file or a directory subtree visible at
107
107
another point within a file system.
259
259
.BR open (2)
260
260
was specified for all file opens to this file system).
261
261
.PP
262
 
From Linux 2.4 onwards, the
 
262
From Linux 2.4 onward, the
263
263
.BR MS_NODEV ", " MS_NOEXEC ", and " MS_NOSUID
264
264
flags are settable on a per-mount-point basis.
265
 
From kernel 2.6.16 onwards,
 
265
From kernel 2.6.16 onward,
266
266
.B MS_NOATIME
267
267
and
268
268
.B MS_NODIRATIME
287
287
.SH ERRORS
288
288
The error values given below result from filesystem type independent
289
289
errors.
290
 
Each filesystem type may have its own special errors and its
 
290
Each file-system type may have its own special errors and its
291
291
own special behavior.
292
292
See the kernel source code for details.
293
293
.TP
295
295
A component of a path was not searchable.
296
296
(See also
297
297
.BR path_resolution (7).)
298
 
Or, mounting a read-only filesystem was attempted without giving the
 
298
Or, mounting a read-only file system was attempted without giving the
299
299
.B MS_RDONLY
300
300
flag.
301
301
Or, the block device
302
302
.I source
303
 
is located on a filesystem mounted with the
 
303
is located on a file system mounted with the
304
304
.B MS_NODEV
305
305
option.
306
306
.\" mtk: Probably: write permission is required for MS_BIND, with
403
403
was added to \fI<mman.h>\fP.
404
404
.LP
405
405
Before Linux 2.4 an attempt to execute a set-user-ID or set-group-ID program
406
 
on a filesystem mounted with
 
406
on a file system mounted with
407
407
.B MS_NOSUID
408
408
would fail with
409
409
.BR EPERM .
430
430
 
431
431
A process can obtain a private mount namespace if:
432
432
it was created using the
433
 
.BR clone ()
 
433
.BR clone (2)
434
434
.BR CLONE_NEWNS
435
435
flag,
436
436
in which case its new namespace is initialized to be a
437
437
.I copy
438
438
of the namespace of the process that called
439
 
.BR clone ();
 
439
.BR clone (2);
440
440
or it calls
441
441
.BR unshare (2)
442
442
with the
460
460
.BR mount (8),
461
461
.BR umount (8)
462
462
.SH COLOPHON
463
 
This page is part of release 3.27 of the Linux
 
463
This page is part of release 3.32 of the Linux
464
464
.I man-pages
465
465
project.
466
466
A description of the project,