diff options
author | Vaclav Dolezal | 2018-04-17 15:52:54 +0200 |
---|---|---|
committer | Karel Zak | 2018-06-11 16:13:36 +0200 |
commit | d45e8ef999e3976017cbf55fc43716f8233d3a0b (patch) | |
tree | 9836ab16d320c79d75a6a2793dd84a3ad3a09bf4 | |
parent | libmount: switch namespace when appropriate (diff) | |
download | kernel-qcow2-util-linux-d45e8ef999e3976017cbf55fc43716f8233d3a0b.tar.gz kernel-qcow2-util-linux-d45e8ef999e3976017cbf55fc43716f8233d3a0b.tar.xz kernel-qcow2-util-linux-d45e8ef999e3976017cbf55fc43716f8233d3a0b.zip |
mount: document --namespace in man/help
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
-rw-r--r-- | sys-utils/mount.8 | 4 | ||||
-rw-r--r-- | sys-utils/mount.c | 2 | ||||
-rw-r--r-- | sys-utils/umount.8 | 4 | ||||
-rw-r--r-- | sys-utils/umount.c | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index b20a5c8b7..488403717 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -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 diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 3811379b4..a0dba721a 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -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)); diff --git a/sys-utils/umount.8 b/sys-utils/umount.8 index fb0601c6d..f09b1eae6 100644 --- a/sys-utils/umount.8 +++ b/sys-utils/umount.8 @@ -128,6 +128,10 @@ 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 .IR /etc/mtab . diff --git a/sys-utils/umount.c b/sys-utils/umount.c index 629c65df8..991adf760 100644 --- a/sys-utils/umount.c +++ b/sys-utils/umount.c @@ -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)); |