Re: [RFC] fhandle implementation.

Neil Brown (neilb@cse.unsw.edu.au)
Thu, 29 Jun 2000 19:36:22 +1000 (EST)


On Tuesday June 27, viro@math.psu.edu wrote:
>
>
> On Tue, 27 Jun 2000, Neil Brown wrote:
>
> > I think we are failing to communicate, so maybe would should just drop
> > this for now....
> > 1/ When I look at "struct vfsmount", is see glue for sticking one part
> > of one fs-tree to another part of another fs-tree. That this
> > defines are subtree is nearly an accident. Any dentry defines a
> > subtree (though a dentry for a file defines only a trivial
> > subtree).
>
> Wrong. It's a "component of a namespace".
>

Ah. I think I see why we are failing to communicate. You are
thinking "namespace" and I am thinking "filesystem".

However, it's probably a bit academic.

I am now thinking that what I would want decode_fh or
fhandle_to_dentry or whatever to return would be a list of dentries,
one for each place in the filesystem that the particular file was
found.

This would probably mean passing an array of (struct dentry *) with
the understanding the every dentry put in the array would have been
dget()ed, and would need a dput().

It is tempting to use the d_alias list rather than an array, but I
think there be dragons there.

NeilBrown

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/