[PATCH] knfsd: ignore ref_fh when crossing a mountpoint
commit7e4053645a67097fa9bec2794d685b1d3928757a
authorNeilBrown <neilb@suse.de>
Fri, 30 Jun 2006 08:56:12 +0000 (30 01:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 30 Jun 2006 18:25:40 +0000 (30 11:25 -0700)
tree17efce223986ff09650ba2cb3acf8ab348424880
parent4c9608b2f2f51e84eba72f4bf061d360259ce656
[PATCH] knfsd: ignore ref_fh when crossing a mountpoint

nfsd tries to return to a client the same sort of filehandle as was used by
the client.  This removes some filehandle aliasing issues and means that a
server upgrade followed by a downgrade will not confused clients not restarted
during that time.

However when crossing a mountpoint, the filehandle used for one filesystem
doesn't provide any useful information on what sort of filehandle should be
used on the other, and can provide misleading information.  So if the
reference filehandle is on a different filesystem to the one being generated,
ignore it.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfsfh.c