mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.4.19] How to get the path name of a struct dentry
@ 2003-03-12  9:33 Torsten Foertsch
  2003-03-12 10:11 ` Christoph Hellwig
  2003-03-12 10:13 ` Arjan van de Ven
  0 siblings, 2 replies; 11+ messages in thread
From: Torsten Foertsch @ 2003-03-12  9:33 UTC (permalink / raw)
  To: linux-kernel

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

Hi,

Assuming I have got a particular (struct dentry*)dp, how can I get it's full 
path name.

I understand that dp->d_name.name contain the relative path name. Then I can 
cycle through dp->d_parent while( !IS_ROOT(dp) ).

But that cycle finishes when the mount point of the current file system is 
hit.

How can I get the mount point's struct dentry of the parent file system basing 
on the root dentry of mounted file system?

Thanks
Torsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+bv7UwicyCTir8T4RAjCRAKCJaTNRnOQ4oXYPZIXIYeaH8X15xwCeNyMI
ftq5TknzeKMMPJIj4as3PaI=
=nm/0
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-03-12 14:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-12  9:33 [2.4.19] How to get the path name of a struct dentry Torsten Foertsch
2003-03-12 10:11 ` Christoph Hellwig
2003-03-12 10:38   ` Torsten Foertsch
2003-03-12 10:47     ` Christoph Hellwig
2003-03-12 12:38       ` Torsten Foertsch
2003-03-12 12:53         ` Christoph Hellwig
2003-03-12 13:04       ` Torsten Foertsch
2003-03-12 13:32         ` Torsten Foertsch
2003-03-12 13:59           ` Christoph Hellwig
2003-03-12 14:51             ` Torsten Foertsch
2003-03-12 10:13 ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®