]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Revert "Automatically set 'nohide' on referral exports." nfs-utils-1-2-2-rc6
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 13 Jan 2010 01:08:24 +0000 (20:08 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
This partially reverts commit ec637de16210c1c6fcb3a0df34d7889592f577dc.

Only NFSv4 clients will actually want to see referall points--others are
better off just seeing an empty directory, that they can manually (or
with automount) mount the appropriate filesystem on.

So we want the kernel to automatically traverse only in the v4 case (as
recent kernels do).

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
support/nfs/exports.c

index 551fc0d8400cc57ddfdd846c80e0119210ce69f6..a93941caf0ca6a87fea44d134d7591ee31106aac 100644 (file)
@@ -641,12 +641,6 @@ bad_option:
                        cp++;
        }
 
                        cp++;
        }
 
-       /*
-        * Turn on nohide which will allow this export to cross over
-        * the 'mount --bind' mount point.
-        */
-       if (ep->e_fslocdata)
-               setflags(NFSEXP_NOHIDE, active, ep);
        fix_pseudoflavor_flags(ep);
        ep->e_squids = squids;
        ep->e_sqgids = sqgids;
        fix_pseudoflavor_flags(ep);
        ep->e_squids = squids;
        ep->e_sqgids = sqgids;