Re: Absolute Path from linux_dirent64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 13, 2010 at 11:14 PM, Sam Carter <sam.w.carter@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux