All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: lioupayphone <lioupayphone@gmail.com>
Cc: linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: what's the real meaning of fsid?
Date: Thu, 18 Dec 2008 10:21:39 -0500	[thread overview]
Message-ID: <494A6A83.9010107@RedHat.com> (raw)
In-Reply-To: <200812180916175465416@gmail.com>

lioupayphone wrote:
>>
> yes, both the two directories have a same FH.
> when i "cat /proc/fs/nfsd/exports ", it shows :
> # Version 1.1
> # Path Client(Flags) # IPs
> /mnt/dir1       *(rw,root_squash,async,wdelay,no_subtree_check,fsid=2)
> /mnt/dir2       *(rw,root_squash,async,wdelay,no_subtree_check,fsid=2) 
> 
> and i "rpc.mountd -d all", and try do mount on client: 
> 	mount -t nfs -o nolock 10.10.37.147:/mnt/dir1 /mnt/1/; 
> 	mount -t nfs -o nolock 10.10.37.147:/mnt/dir2 /mnt/2/;
> 
> in kernel, /mnt/dir1 and /mnt/dir2 respectively corresponds to   two different svc_export objects. 
> in fh_compose(), they have same fsid_type and fsid, but the fileidtype and fileid should NOT be same.
> i am still in puzzled. :-(

The reason your getting the same file handle for both mounts is 
because the 'fsid=2' is set on both exports. So what is happening 
is the 'mount 10.10.37.147:/mnt/dir2 /mnt/2' is actually mounting 
the /mnt/1 directory on the server which is the reason for the
same file handle.  At least that's what as happening in my testing. 

So you have two options. One, don't set the fsid or don't make the fsids
the same value.

steved.

  reply	other threads:[~2008-12-18 15:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  5:36 what's the real meaning of fsid? lioupayphone
2008-12-17 22:32 ` Steve Dickson
2008-12-18  1:16 ` lioupayphone
2008-12-18 15:21   ` Steve Dickson [this message]
2008-12-18 19:03 ` J. Bruce Fields
2008-12-19 15:04 ` lioupayphone

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=494A6A83.9010107@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=lioupayphone@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.