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
> >ile/dir object handle is sufficient in getting it's full path name. Thus
> > 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.
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