On Sat, Feb 13, 2010 at 11:14 PM, Sam Carter <[email protected]> wrote:
> Hi guys,
> Can I get the string of the full path to a linux_dirent64 file somehow?
If I understand your question correctly, that is not possible. a
linux_dirent64 will have information about your current filename (ie..
name, record len etc.). Just by using this it is not possible to get a
unique parent for the filename. For example if you have a filename foo
you may have different parents like

/home/mkatiyar/A/foo
/home/mkatiyar/B/foo

In such cases what would you expect to get ? the parent should be 'A' or 'B'

Thanks -
Manish
> I've looked at stat() but it wasnt very helpful. Also d_path(), but that
> takes a dentry struct, not a dirent like I have.
> Thanks,
> Sam



-- 
Thanks -
Manish
==================================
[$\*.^ -- I miss being one of them
==================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to