diff options
author | Neil Brown <neilb@suse.de> | 2006-01-08 01:03:18 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 20:13:55 -0800 |
commit | 4a0d11fae57989e24fe2ee3eff6d62d72db9716c (patch) | |
tree | 5d91ff28e650e82e9318db7d9be5f74d43880214 /fs/namespace.c | |
parent | c809406b4f2dfac9006d7eb8dca6b9f990f10b61 (diff) | |
download | linux-rpi-4a0d11fae57989e24fe2ee3eff6d62d72db9716c.tar.gz linux-rpi-4a0d11fae57989e24fe2ee3eff6d62d72db9716c.tar.bz2 linux-rpi-4a0d11fae57989e24fe2ee3eff6d62d72db9716c.zip |
[PATCH] pivot_root: add comment
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 2019899f2ab8..e5aa1eeb5748 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1526,6 +1526,10 @@ static void chroot_fs_refs(struct nameidata *old_nd, struct nameidata *new_nd) * pointed to by put_old must yield the same directory as new_root. No other * file system may be mounted on put_old. After all, new_root is a mountpoint. * + * Also, the current root cannot be on the 'rootfs' (initial ramfs) filesystem. + * See Documentation/filesystems/ramfs-rootfs-initramfs.txt for alternatives + * in this situation. + * * Notes: * - we don't move root/cwd if they are not at the root (reason: if something * cared enough to change them, it's probably wrong to force them elsewhere) |