[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-man
Subject: Re: [PATCH] pivot_root.2: Document EINVAL if root is rootfs
From: "Michael Kerrisk (man-pages)" <mtk.manpages () gmail ! com>
Date: 2018-08-26 13:48:01
Message-ID: 502fc144-dd97-6662-eafd-146d823d3b5d () gmail ! com
[Download RAW message or body]
On 08/09/2018 06:23 AM, Joseph Sible wrote:
> Per the comment on the pivot_root syscall in fs/namespace.c
Thanks for the additional details in your follow up mail, Joseph.
Patch applied.
Cheers,
>
> Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
> ---
> man2/pivot_root.2 | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/man2/pivot_root.2 b/man2/pivot_root.2
> index f744d29..2f8f5f4 100644
> --- a/man2/pivot_root.2
> +++ b/man2/pivot_root.2
> @@ -112,6 +112,9 @@ or a filesystem is already mounted on \fIput_old\fP.
> .B EINVAL
> \fIput_old\fP is not underneath \fInew_root\fP.
> .TP
> +.B EINVAL
> +The current root is on the rootfs (initial ramfs) filesystem.
> +.TP
> .B ENOTDIR
> \fInew_root\fP or \fIput_old\fP is not a directory.
> .TP
> --
> 2.7.4
> .
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic