Linux NFS development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Alex Bligh <alex@alex.org.uk>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Peculiarity in handling NFSv4 mount paths with fsid=0
Date: Wed, 18 Jun 2014 16:27:35 +1000	[thread overview]
Message-ID: <20140618162735.34b3ae50@notabene.brown> (raw)
In-Reply-To: <EB04E1C061D36F087D431E74@nimrod.local>

[-- Attachment #1: Type: text/plain, Size: 1817 bytes --]

On Sat, 14 Jun 2014 10:37:14 +0100 Alex Bligh <alex@alex.org.uk> wrote:

> I've discovered I think a peculiarity with handling mount paths with fsid=0.

It looks to me like this has nothing to do with "fsid=0" and everything to do
with using the expected number of '/' characters.


> This is on Ubuntu Precise (old) but I've used 3.13 too with the same
> problem.
> 
> I have an exports line like this:
> /storage/local 
> *(rw,sync,wdelay,nohide,crossmnt,insecure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,fsid=0,anonuid=65534,anongid=65534)
> 
> 
> And mounted a directory like this (which succeeded)
> 
> # mount -t nfs4 10.157.208.1:nfs-01 /mnt
> 
> And unmount did this:
> 
> # umount 10.157.208.1:nfs-01
> /mnt was not found in /proc/mounts
> /mnt was not found in /proc/mounts
> 
> Examination showed /proc/mounts contained the line:
> 
> 10.157.208.1:/nfs-01 /mnt nfs4 
> rw,relatime,vers=4.0,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.157.208.1,local_lock=none,addr=10.157.208.1 
> 0 0
> 
> Whereas the outptut of 'mount' contained the line:
> 
> 10.157.208.1:nfs-01 on /mnt type nfs4 
> (rw,addr=10.157.208.1,clientaddr=10.157.208.1)
> 
> There is a difference here between "/nfs-01" and "nfs-01".
> 
> This might merely be an annoying bug, where it not for the fact that as
> far as I can tell the mount is now cannot be unmounted with userspace
> tools. No amount of --fake and -n appears to help. System reset required.

Doesn't
   umount /mnt
work?


> 
> Of course had I typed:
> 
> # mount -t nfs4 10.157.208.1:/nfs-01 /mnt
> 
> all would have been well.
> 
> I suspect something should be canonicalising the path consistently.
> 

I agree there.

NeilBrown


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2014-06-18  6:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-14  9:37 Peculiarity in handling NFSv4 mount paths with fsid=0 Alex Bligh
2014-06-18  6:27 ` NeilBrown [this message]
2014-06-19 13:28   ` Alex Bligh

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=20140618162735.34b3ae50@notabene.brown \
    --to=neilb@suse.de \
    --cc=alex@alex.org.uk \
    --cc=linux-nfs@vger.kernel.org \
    /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