[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-xfs
Subject:    Re: Dmapi questions
From:       Dean Roehrich <roehrich () clink ! americas ! sgi ! com>
Date:       2004-02-03 13:53:37
Message-ID: 200402031353.i13Drb9i4058337 () clink ! americas ! sgi ! com
[Download RAW message or body]


>From:  Chris Wedgwood <cw@f00f.org>
>On Mon, Feb 02, 2004 at 10:15:56AM -0600, Dean Roehrich wrote:
>
>> You won't like it.  Unix-based filesystems don't provide anything
>> special for translating an inode into a filename; you just have to
>> search the filesystem for the inode--and then you know the filename.
>
>Under Linux you could walk the dentries and get a usable path at the
>VFS layer.  There is already code that does this.

You're presuming that the file has already been accessed via a pathname, and
that it's still in the dcache.

When you have a filehandle, you don't need a pathname.


>(exactly how it should work is still unclear to me,
>different permissions along the path might mean you aren't entitled to
>events you would otherwise get).

If an HSM is supposed to make that filesystem appear bottomless, then it must
have sufficient privilege to see everything that happens on that filesystem.

Dean


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic