Re: [2.4.19] How to get the path name of a struct dentry

Torsten Foertsch (torsten.foertsch@gmx.net)
Wed, 12 Mar 2003 11:38:27 +0100


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 12 March 2003 11:11, Christoph Hellwig wrote:
> On Wed, Mar 12, 2003 at 10:33:05AM +0100, Torsten Foertsch wrote:
> > Assuming I have got a particular (struct dentry*)dp, how can I get it's
> > full path name.
>
> You can't. See d_path() for the information needed to get an absolute
> path.

Thanks, that helped.

Next question, is there a way to get the dentry and vfsmount of /? I mean not
current->fs->root and current->fs->rootmnt. They can be chrooted. I mean the
real /.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+bw4nwicyCTir8T4RAkc3AJ9W1k9rwLF44E5dVawOeePbNcf1pACfR/J7
giuLC13yRuO+z/wPLpCbtNs=
=UcIU
-----END PGP SIGNATURE-----
-
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/