Hi,
From a given dentry, i want to generate that files absolute path. I
don't want to use d_path, because it doesn't cross mount points.
Here is the algorithm what I have decided.
1. From dentry object get dname.
2. store in string
3. if IS_ROOT (dentry) goto stop
3. find its parent using dentry->parent
4. go to 1.
Stop.
Will this work?
I have one more question, when I have dentry of a file, then if dentries
of all its parents up to '/' are present in the dcache?
Regards,
- Ashish K.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/