]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: document --namespace in man/help
authorVaclav Dolezal <vdolezal@redhat.com>
Tue, 17 Apr 2018 13:52:54 +0000 (15:52 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Jun 2018 14:13:36 +0000 (16:13 +0200)
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
sys-utils/mount.8
sys-utils/mount.c
sys-utils/umount.8
sys-utils/umount.c

index b20a5c8b7015c4d1f2d02819e8f5062973c09b66..4884037175fe79bc7048d366c9ceb2b22ea42f01 100644 (file)
@@ -644,6 +644,10 @@ This is necessary for example when
 .I /etc
 is on a read-only filesystem.
 .TP
+.BR \-N , " \-\-namespace " \fIns
+Perform mount in namespace specified by \fIns\fR.
+\fIns\fR is typically in form \fI/proc/[pid]/ns/mnt\fR.
+.TP
 .BR \-O , " \-\-test\-opts " \fIopts
 Limit the set of filesystems to which the
 .B \-a
index 3811379b4cb02dd3ab79dbfcfcdc3c305cb96956..a0dba721a8cd31277d2e432eaf3b847e992160fc 100644 (file)
@@ -431,6 +431,8 @@ static void __attribute__((__noreturn__)) usage(void)
        " -v, --verbose           say what is being done\n"));
        fprintf(out, _(
        " -w, --rw, --read-write  mount the filesystem read-write (default)\n"));
+       fprintf(out, _(
+       " -N, --namespace <ns>    perform mount in another namespace\n"));
 
        fputs(USAGE_SEPARATOR, out);
        printf(USAGE_HELP_OPTIONS(25));
index fb0601c6d121c548c54f184cf884d66a2a1d8245..f09b1eae69fd9427faa9afa81339dde9dc16d421 100644 (file)
@@ -127,6 +127,10 @@ recommended use-case for \fBumount -l\fR is to prevent hangs on shutdown due to
 an unreachable network share where a normal umount will hang due to a downed
 server or a network partition. Remounts of the share will not be possible.
 
+.TP
+.BR \-N , " \-\-namespace " \fIns
+Perform umount in namespace specified by \fIns\fR.
+\fIns\fR is typically in form \fI/proc/[pid]/ns/mnt\fR.
 .TP
 .BR \-n , " \-\-no\-mtab"
 Unmount without writing in
index 629c65df8e10c8cccaa777924213d43d06ad606a..991adf7608e8041efc0d5fde931e3636d401ab2b 100644 (file)
@@ -100,6 +100,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --read-only         in case unmounting fails, try to remount read-only\n"), out);
        fputs(_(" -t, --types <list>      limit the set of filesystem types\n"), out);
        fputs(_(" -v, --verbose           say what is being done\n"), out);
+       fputs(_(" -N, --namespace <ns>    perform umount in another namespace\n"), out);
 
        fputs(USAGE_SEPARATOR, out);
        printf(USAGE_HELP_OPTIONS(25));