public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* nfs4 filesystem mounted via the "bind" option reports wrong fstype
@ 2007-08-27 18:32 Gabriel Barazer
  2007-08-27 18:40 ` J. Bruce Fields
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Barazer @ 2007-08-27 18:32 UTC (permalink / raw)
  To: nfsv4; +Cc: linux-kernel, nfs, jkar8572

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-27 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 18:32 nfs4 filesystem mounted via the "bind" option reports wrong fstype Gabriel Barazer
2007-08-27 18:40 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox