mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: David Howells <dhowells@redhat.com>
Cc: steved@redhat.com, nfsv4@linux-nfs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][RFC] NFS: Propagate 'fsc' mount option through automounts
Date: Tue, 14 Jul 2009 15:03:20 -0400	[thread overview]
Message-ID: <1247598200.6122.122.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <6404.1247593654@redhat.com>

On Tue, 2009-07-14 at 18:47 +0100, David Howells wrote:
> Trond Myklebust <Trond.Myklebust@netapp.com> wrote:
> 
> > Why not just use the mount path as the default uniquifier?
> 
> Because:
> 
>  (1) Which mount path?  You're now constructing the mount tree in its own
>      private namespace.

The natural thing would be to use the mount path that is required to
locate the super block's root dentry on the server (i.e. the mount path
for sb->s_root).
In the private namespace (since that reflects the namespace of the
server, and hence mnt->mnt_root == sb->s_root) this mount path will
always be the same as the contents of mnt->mnt_devname. 

(In the local namespace, however, sb->s_root != mnt->mnt_root, and so
mnt->mnt_devname is fixed up to reflect that difference. See
nfs_fix_devname()...)

>  (2) Due to the new VFS-pathwalk-based mount, the uniquifier is applied to the
>      root mount only, and if modified to inherit, would be applied to every
>      automount subordinate to that, rather than just the actual subject of the
>      mount.
>
>  (3) Due to the new VFS-pathwalk-based mount and the private namespace, the
>      default uniquifier for all instances of any particular mount is always
>      the same.

...and is that sufficient? If it is, then fine, let's leave it...

>  (4) If we work around some how the mounts now getting their mount path from
>      the private namespace, there are still real namespaces, chroots and
>      root-pivots to contend with.

Real namespaces, chroots and root-pivots are all changes to the client
only. They do not change the server's namespace, and hence the mount
path is invariant.

     Trond

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com

  reply	other threads:[~2009-07-14 19:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09 17:27 David Howells
2009-07-09 17:50 ` Trond Myklebust
2009-07-14 17:47 ` David Howells
2009-07-14 19:03   ` Trond Myklebust [this message]
2009-07-15 10:50   ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1247598200.6122.122.camel@heimdal.trondhjem.org \
    --to=trond.myklebust@netapp.com \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nfsv4@linux-nfs.org \
    --cc=steved@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®