xfs
[Top] [All Lists]

Re: DMAPI dm_handle_to_path

To: Dean Roehrich <roehrich@xxxxxxx>
Subject: Re: DMAPI dm_handle_to_path
From: Stephen Lord <lord@xxxxxxx>
Date: 24 Apr 2002 14:15:54 -0500
Cc: Francis Qu <francis@xxxxxxxxxxxx>, Linux XFS <linux-xfs@xxxxxxxxxxx>
In-reply-to: <200204241853.NAA04686@slobber.americas.sgi.com>
References: <200204241853.NAA04686@slobber.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Wed, 2002-04-24 at 13:53, Dean Roehrich wrote:
> 
> >From:  "Francis Qu" <francis@xxxxxxxxxxxx>
> >Sometimes we want to obtain the path without knowing parent handle. A single 
> >f
> >ile/dir object handle is sufficient in getting it's full path name. Thus 
> >makes
> > the arguments parent dir handle unnecessary? I create my own version of 
> > handl
> >e_to_path by using only object handle.
> 
> I agree, you should be able to do this without using the parent dir handle.  I
> wrestled with it, but didn't want to throw away the stuff in dm_handl2path.c
> because I wasn't sure about all the things it claims to fix.
> 
> Now, here's something to try with your version:  you have the handle, so
> unmount and again mount the filesystem, and now feed that handle to your
> handle_to_path.  What happens?  If you get something other than "/" or a
> crash, I really want to see your code.
> 
> 
> Dean

A heads up for people working in this area. 2.5.9 just revamped how
NFS does all of its work in this area, and the old interface between
NFS and filesystems is 'going away'. I suspect the handle code will
be impacted by this in 2.5

Steve




<Prev in Thread] Current Thread [Next in Thread>