lkml.org 
[lkml]   [2001]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Ph. Marek writes:
> in fs/devfs/util.c is
> void __init devfs_make_root (const char *name)
> which is wrong as pivot_root allows changing the root-device in the runtime.
>
> I think it should be
> void __init devfs_make_root (const char *name)
> and get called by
> fs/super.c:
> asmlinkage long sys_pivot_root(const char *new_root, const char *put_old)
> after
> chroot_fs_refs(root,root_mnt,new_nd.dentry,new_nd.mnt);
> error = 0;
>
> Is that correct?

No, because devfs_mk_root() only ever needs to called from
mount_root(). If you're doing pivot_root() then you've got initrd, in
which case you can create compatibility symlinks from user-space.

Regards,

Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.039 / U:1.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site