OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man2 / mount.2
index c77bcc8..7698b17 100644 (file)
@@ -1,9 +1,8 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (C) 1993 Rickard E. Faith <faith@cs.unc.edu>
 .\" and Copyright (C) 1994 Andries E. Brouwer <aeb@cwi.nl>
 .\" and Copyright (C) 2002, 2005 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -23,6 +22,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Modified 1996-11-04 by Eric S. Raymond <esr@thyrsus.com>
 .\" Modified 2001-10-13 by Michael Kerrisk <mtk.manpages@gmail.com>
@@ -37,7 +37,7 @@
 .\" 2008-10-06, mtk: move umount*() material into separate umount.2 page.
 .\" 2008-10-06, mtk: Add discussion of namespaces.
 .\"
-.TH MOUNT 2 2012-05-10 "Linux" "Linux Programmer's Manual"
+.TH MOUNT 2 2012-07-05 "Linux" "Linux Programmer's Manual"
 .SH NAME
 mount \- mount file system
 .SH SYNOPSIS
@@ -85,6 +85,24 @@ and various mount flags
 in the low order 16 bits:
 .\" FIXME 2.6.15 added flags for "shared subtree" functionality:
 .\" MS_UNBINDABLE, MS_PRIVATE, MS_SHARED, MS_SLAVE
+.\"
+.\"    MS_PRIVATE.
+.\"            All mounts are private by default. Previously shared mouns
+.\"            can be remarked PRIVATE.
+.\"    MS_SHARED
+.\"            Mount points that are marked SHARED propagate mount events
+.\"            to one another after bing cloned.
+.\"    MS_SLAVE
+.\"            A previously shared mount point can be marked SALVE, meaning
+.\"            it receives propagated events, but does not propagate events.
+.\"    MS_UNBINDABLE
+.\"            mounts cannot be bound into other places, and will not be
+.\"            propagated into new subtrees    
+.\"    mount --make-rshared ==> MS_SHARED | MS_REC
+.\"
+.\" These settings are visible in proc/mountinfo
+.\"
+.\"
 .\" These need to be documented on this page.
 .\" See:
 .\" Documentation/filesystems/sharedsubtree.txt
@@ -100,6 +118,14 @@ in the low order 16 bits:
 .\" Shared Subtree Concept and Implementation in the Linux Kernel
 .\" Ram Pai
 .\"
+.\" http://www.ibm.com/developerworks/linux/library/l-mount-namespaces/index.html
+.\"     Applying mount namespaces
+.\"
+.\"     Uncover practical applications for advanced Linux mounts features
+.\"     Serge E. Hallyn (sergeh@us.ibm.com), Software Engineer, IBM 
+.\"     Ram Pai (linuxram@us.ibm.com), Software Engineer, IBM
+.\"     Date:  17 Sep 2007
+.\"
 .\" 2.6.25 Added MS_I_VERSION, which needs to be documented.
 .\"
 .TP
@@ -208,14 +234,14 @@ This allows you to change the
 and
 .I data
 of an existing mount without having to unmount and remount the file system.
-.I source
-and
 .I target
-should be the same values specified in the initial
+should be the same value specified in the initial
 .BR mount ()
 call;
+.I source
+and
 .I filesystemtype
-is ignored.
+are ignored.
 
 The following
 .I mountflags
@@ -288,7 +314,7 @@ The error values given below result from filesystem type independent
 errors.
 Each file-system type may have its own special errors and its
 own special behavior.
-See the kernel source code for details.
+See the Linux kernel source code for details.
 .TP
 .B EACCES
 A component of a path was not searchable.
@@ -409,7 +435,7 @@ would fail with
 Since Linux 2.4 the set-user-ID and set-group-ID bits are
 just silently ignored in this case.
 .\" The change is in patch-2.4.0-prerelease.
-.SS Per-process Namespaces
+.SS Per-process namespaces
 Starting with kernel 2.4.19, Linux provides
 per-process mount namespaces.
 A mount namespace is the set of file system mounts that
@@ -455,6 +481,7 @@ namespace of the process with the specified ID; see
 for details.
 .SH "SEE ALSO"
 .BR umount (2),
+.BR namespaces (7),
 .BR path_resolution (7),
 .BR mount (8),
 .BR umount (8)