On 8/1/06, Sonny Rao <sonny@burdell.org> wrote:
On Mon, Jul 31, 2006 at 04:37:35PM +0530, Kamal R. Prasad wrote:
>
>    Hello,
>
>
>
>     I was looking at some stuff related to ext2 and it seems as if one can look
>    at an inode, and map to an entry in the dcache and resolve inode to filename
>    mapping. My question to this forum is:-
>
>
>
>    -can the same technique be used with jfs2 on linux ?
>
>    -can the same technique be used with jfs2 on AIX ?
>
>    -is there a mechanism to suggest that the dcache entry for a jfs2 inode is
>    still valid?

First off, there is no such thing as "jfs2 on linux" JFS2 is similar
to JFS on Linux and shares the same lineage  but was separately
developed.  JFS on Linux was derived from JFS on OS/2.
 
fine -I meant the JFS implementation on linux.
 

Since you've said dcache,  I assume you are referring to the Linux
dentry-cache ?  In Linux, the dentry-cache and inode cache (vnode in
 
as an example -yes.

non-Linux terms)  are linked together directly.  When a dentry
exists in the cache, if it represents a real file, then it will have a
pointer to the corresponding inode in memory.  If a dentry exists and
has a NULL pointer instead of a valid inode address, then it is a
negative dentry, which means the file does not exist.
 
looks like this doesn't answer my question. Thanks anyways.
 
regards
-kamal
 

I don't know how the AIX kernel implements it's caches but it is likely
entierly different from Linux.