lkml.org 
[lkml]   [1999]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: bug or feature?
    On Sun, Feb 14, 1999 at 05:26:38PM -0500, Chris Ricker wrote:
    > I just noticed the following:
    >
    > It seems Linux will let you mount "over" NFS mounts.
    <snip>

    NFS has nothing do with it. Right now, you can mount over any
    directory you want!

    The comment for do_mount in fs/super.c says:

    * [21-Mar-97] T.Schoebel-Theuer: Now this can be overridden when
    * supplying a leading "!" before the dir_name, allowing "stacks" of
    * mounted filesystems. The stacking will only influence any pathname lookups
    * _after_ the mount, but open file descriptors or working directories that
    * are now covered remain valid. For example, when you overmount /home, any
    * process with old cwd /home/joe will continue to use the old versions,
    * as long as relative paths are used, but absolute paths like /home/joe/xxx
    * will go to the new "top of stack" version. In general, crossing a
    * mount point will always go to the top of stack element.
    * Anyone using this new feature must know what he/she is doing.

    I can't see any check for a `!' anywhere in the code; perhaps this
    `feature' is now default behaviour?

    --
    Ben Hutchings, software engineer | web site to be reconstructed at some time
    womble@ferret.lmh.ox.ac.uk | Team *AMIGA* | Jay Miner Society - www.jms.org
    Nothing is ever a complete failure; it can always serve as a bad example.

    -
    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/

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