lkml.org 
[lkml]   [2004]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [some sanity for a change] possible design issues for hybrids
    On Thu, Aug 26, 2004 at 04:24:51PM -0700, Linus Torvalds wrote:
    > So basically: the "d_mounted++" just makes sure we get into
    > "lookup_mnt()". That's where we will usually find the actual mount thing.
    >
    > And that's also where the special case comes in: if we _don't_ find the
    > mount thing there, that's where we need to create it. That will only
    > happen if somebody looks it up using another namespace, though, so it
    > should be rare.

    No. Trivial example:

    mount --bind /foo /bar
    mount /dev/sda1 /bar/baz

    do lookup for /foo/baz. No namespaces involved, no vfsmounts found, d_mounted
    positive and we certainly do *not* want anything to be created at that point.
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:05    [W:2.047 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site