aboutsummaryrefslogtreecommitdiffstats
path: root/man2/pivot_root.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-07-27 07:07:32 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-09-23 13:11:18 +0200
commit14e47dbe605531d384dee4a6cf3f76d3859d902c (patch)
tree3cd9bf1b4da125859ef02157aa4858a80e38b7e5 /man2/pivot_root.2
parentcc245e5bf8bf94e400238b6ed81c6d4d335c4996 (diff)
downloadman-pages-14e47dbe605531d384dee4a6cf3f76d3859d902c.tar.gz
pivot_root.2: Minor fix: place some text at a more logical location in the page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/pivot_root.2')
-rw-r--r--man2/pivot_root.228
1 files changed, 14 insertions, 14 deletions
diff --git a/man2/pivot_root.2 b/man2/pivot_root.2
index c7d3bece12..87d5a9a837 100644
--- a/man2/pivot_root.2
+++ b/man2/pivot_root.2
@@ -78,25 +78,12 @@ the current root.
number of \fI/..\fP to the string pointed to by \fIput_old\fP must yield
the same directory as \fInew_root\fP.
.IP \- 3
-No other filesystem may be mounted on \fIput_old\fP.
-.PP
-See also
-.BR pivot_root (8)
-for additional usage examples.
-.PP
-If the current root is not a mount point (e.g., after
-.BR chroot (2)
-or
-.BR pivot_root (),
-see also below), not the old root directory, but the
-mount point of that filesystem is mounted on \fIput_old\fP.
-.PP
.I new_root
must be a mount point.
(If it is not otherwise a mount point, it suffices to bind mount
.I new_root
on top of itself.)
-.PP
+.IP \- 3
The propagation type of
.I new_root
and its parent mount must not be
@@ -105,6 +92,19 @@ similarly, if
.I put_old
is an existing mount point, its propagation type must not be
.BR MS_SHARED .
+.IP \- 3
+No other filesystem may be mounted on \fIput_old\fP.
+.PP
+See also
+.BR pivot_root (8)
+for additional usage examples.
+.PP
+If the current root is not a mount point (e.g., after
+.BR chroot (2)
+or
+.BR pivot_root (),
+see also below), not the old root directory, but the
+mount point of that filesystem is mounted on \fIput_old\fP.
.SH RETURN VALUE
On success, zero is returned.
On error, \-1 is returned, and