Re: (struct dentry *)->vfsmnt;

From: Alexander Viro (viro@math.psu.edu)
Date: Fri Mar 09 2001 - 20:00:15 EST

  • Next message: Alan Cox: "Re: [PATCH]: allow notsc option for buggy cpus"

    On Fri, 9 Mar 2001, LA Walsh wrote:

    > Could someone enlighten me as to the purpose of this field in the
    > dentry struct? There is no elucidating comment in the header for this
    > particular field and the name/type only indicate it is pointing to
    > a list of vfsmounts. Can a dentry belong to more than one vfsmount?

    Yes.

    > If I have a 'dentry' and simply want to determine what the absolute
    > path from root is, in the 'd_path' macro, would I use 'rootmnt' of my
    > current->fs as the 'vfsmount' as well?

    No such thing. The same fs may be present in many places. Please,
    describe the situation - where do you get that dentry from?
                                                            Cheers,
                                                                    Al

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



    This archive was generated by hypermail 2b29 : Fri Mar 09 2001 - 20:12:51 EST