diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-07-30 12:17:34 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-09-23 13:11:19 +0200 |
| commit | 071505e9fbf45964db8a04b4fd10abe2a6e92749 (patch) | |
| tree | 1cb774caeecb4895abc96b9113630edd3b3c18e2 | |
| parent | 43d438e29bb47767c3fa49c33127f16e17332055 (diff) | |
| download | man-pages-071505e9fbf45964db8a04b4fd10abe2a6e92749.tar.gz | |
pivot_root.2: Remove bogus a bogus EBUSY error case
The note that EBUSY is given if a filesystem is already mounted
on 'Iput_old' was never really true. That restriction was in
Linux 2.3.14, but removed in Linux 2.3.99-pre6 so it never made
it to mainline.
The relevant diff in pivot_root() was:
error = -EBUSY;
- if (d_new_root->d_sb == root->d_sb || d_put_old->d_sb == root->d_sb)
+ if (new_nd.mnt == root_mnt || old_nd.mnt == root_mnt)
goto out2; /* loop */
- if (d_put_old != d_put_old->d_covers)
- goto out2; /* mount point is busy */
error = -EINVAL;
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man2/pivot_root.2 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index a11a31a031..ebbd31f378 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -115,8 +115,7 @@ may fail with any of the same errors as Additionally, it may fail with the following errors: .TP .B EBUSY -\fInew_root\fP or \fIput_old\fP are on the current root filesystem, -or a filesystem is already mounted on \fIput_old\fP. +\fInew_root\fP or \fIput_old\fP are on the current root filesystem. .TP .B EINVAL .I new_root |
