From: Gabriel Barazer <gabriel@oxeva.fr>
To: nfsv4@linux-nfs.org
Cc: linux-kernel@vger.kernel.org, nfs@lists.sourceforge.net,
jkar8572@users.sourceforge.net
Subject: nfs4 filesystem mounted via the "bind" option reports wrong fstype
Date: Mon, 27 Aug 2007 20:32:51 +0200 [thread overview]
Message-ID: <46D318D3.9020101@oxeva.fr> (raw)
Hi,
A nfs4 filesystem, mounted elsewhere via the "bind" option (the usual
way to do with nfsv4 and its pseudofs), reports wrong fstype "nfs"
instead of "nfs4" filesystem.
An example is much easier to understand :
Server-side :
- /exports is the pseudo root filesystem (fsid=0 option in /etc/exports)
- /exports/data is a mountpoint for another filesystem (not the same
device-id as /exports). This condition seems to be what triggers the bug
- /exports/data must be exported with the "nohide" option (again, the
usual way to do se with nfsv4)
Client-side :
- mount server:/ on /imports
- mount "bind" /imports/data on /home/data
(this magically shows a second nfs mount in /proc/mounts)
And here is the bug : this second mount is of fstype "nfs" instead of
"nfs4" although the options field contains "vers=4".
This is like a cosmetic bug, but this becomes a problem when some apps
need to differentiate nfs and nfs4 fstype (e.g. linuxquota uses it to
know how to handle the nfs source-path)
Gabriel
next reply other threads:[~2007-08-27 18:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-27 18:32 Gabriel Barazer [this message]
2007-08-27 18:40 ` nfs4 filesystem mounted via the "bind" option reports wrong fstype J. Bruce Fields
2007-08-27 19:15 ` Al Viro
2007-08-27 19:32 ` J. Bruce Fields
2007-08-27 20:08 ` Gabriel Barazer
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=46D318D3.9020101@oxeva.fr \
--to=gabriel@oxeva.fr \
--cc=jkar8572@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=nfs@lists.sourceforge.net \
--cc=nfsv4@linux-nfs.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