On Fri, 14 Apr 2000, Tigran Aivazian wrote:
> Hi Al,
>
> by reading your comments like "pass &mnt to lookup_dentry" I assume that
> it is now only possible to chdir/chroot by name and not by dentry which is
> rather inconvenient design.
>
> It would seem that in order to, say, chdir, by given dentry I have to
> use dentry->d_name.name and re-lookup again passing &mnt to
> lookup_dentry()? Surely I am missing something because you wouldn't have
> designed it this awkwardly on purpose?
You _should_ _not_ chdir() by dentry. At all. Think what will happen if
filesystem will be mounted in two different places, sharing the dentry tree.
Dentry is not enough. And lookup_dentry() is going out - walk_name() is the
replacement.
There is a large merge in progress and MOUNT_REWRITE comments mark the
stuff that is in the middle of a change.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:09 EST