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 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 @@ -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 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 limit the set of filesystem types\n"), out); fputs(_(" -v, --verbose say what is being done\n"), out); + fputs(_(" -N, --namespace perform umount in another namespace\n"), out); fputs(USAGE_SEPARATOR, out); printf(USAGE_HELP_OPTIONS(25));