nfs-utils: exportfs: automatically set 'nohide' on referral exports.
Subsystems (2)
PATCH 1/1 nfs-utils: exportfs: automatically set 'nohide' on referral exports.
To activate referral mounts, the local directory (on the server) has to be --bind mounted (i.e. mount --bind . .), which means when the local directory is accessed (by the client) a mount point is being crossed. If the 'nohide' is not set on the export (or crossmnt on the parent export) the referral *silently* fails since the mount point can not be crossed.
This silent failure makes it almost impossible to figure out why referral mounts fail, since there is no error message or network traffic. So by setting the nohide option automatically this silent failure is eliminated.
This patch is relative to the Fedora nfs-utils git tree:git://git.infradead.org/~steved/nfs-utils.fedora
but does apply to Neil's git tree.
steved.
commit 34038ab17a5fa157bfee103eb3fe58bb999b40a4
Author: Steve Dickson <[email protected]> Date: Tue Oct 2 09:56:42 2007 -0400
This patch turns on the 'nohide' export option automatically for all FS location exports due to the fact this option is need to for referral mount to work.
support/nfs/exports.c +6 -0
@@ -508,6 +508,12 @@ bad_option:while (isblank (*cp)) cp++; } +/* +* Turn on nohide which will allow this export to cross over +* the 'mount --bind' mount point. +*/ +if (ep->e_fslocdata) + ep->e_flags |=NFSEXP_NOHIDE ; ep->e_squids = squids; ep->e_sqgids = sqgids;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs