]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
mount_namespaces.7: Minor fixes
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 26 Jun 2016 12:01:53 +0000 (07:01 -0500)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 30 Jun 2016 04:08:32 +0000 (06:08 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man7/mount_namespaces.7

index f014f593abfcaa9bbb8e6ab7b45f6db9c22a6b6f..fdd736882be4400d3e7d2b13bac868a744f2130b 100644 (file)
@@ -221,7 +221,7 @@ and then view the mounts in
 .in +4n
 sh1# \fBmount \-\-make\-shared /mntS\fP
 sh1# \fBmount \-\-make\-private /mntP\fP
-sh1# \fBcat /proc/self/mountinfo | grep \(aq/mnt[AB]\(aq | sed \(aqs/ \- .*//\(aq\fP
+sh1# \fBcat /proc/self/mountinfo | grep \(aq/mnt\(aq | sed \(aqs/ \- .*//\(aq\fP
 77 61 8:17 / /mntS rw,relatime shared:1
 83 61 8:15 / /mntP rw,relatime
 .in
@@ -258,7 +258,7 @@ and inspect the mounts:
 .nf
 .in +4n
 $ \fBPS1=\(aqsh2# \(aq sudo unshare \-m \-\-propagation unchanged sh\fP
-sh2# \fBcat /proc/self/mountinfo | grep \(aq/mnt[AB]\(aq | sed \(aqs/ \- .*//\(aq\fP
+sh2# \fBcat /proc/self/mountinfo | grep \(aq/mnt\(aq | sed \(aqs/ \- .*//\(aq\fP
 222 145 8:17 / /mntS rw,relatime shared:1
 225 145 8:15 / /mntP rw,relatime
 .in
@@ -288,7 +288,7 @@ sh2# \fBmkdir /mntS/a\fP
 sh2# \fBmount /dev/sdb6 /mntS/a\fP
 sh2# \fBmkdir /mntP/b\fP
 sh2# \fBmount /dev/sdb7 /mntP/b\fP
-sh2# \fBcat /proc/self/mountinfo | grep \(aq/mnt[AB]\(aq | sed \(aqs/ \- .*//\(aq\fP
+sh2# \fBcat /proc/self/mountinfo | grep \(aq/mnt\(aq | sed \(aqs/ \- .*//\(aq\fP
 222 145 8:17 / /mntS rw,relatime shared:1
 225 145 8:15 / /mntP rw,relatime
 178 222 8:22 / /mntS/a rw,relatime shared:2
@@ -312,7 +312,7 @@ did not propagate:
 
 .nf
 .in +4n
-sh1# \fBcat /proc/self/mountinfo | grep \(aq/mnt[AB]\(aq | sed \(aqs/ \- .*//\(aq\fP
+sh1# \fBcat /proc/self/mountinfo | grep \(aq/mnt\(aq | sed \(aqs/ \- .*//\(aq\fP
 77 61 8:17 / /mntS rw,relatime shared:1
 83 61 8:15 / /mntP rw,relatime
 179 77 8:22 / /mntS/a rw,relatime shared:2