From ec637de16210c1c6fcb3a0df34d7889592f577dc Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 9 Jan 2008 13:13:31 -0500 Subject: Automatically set 'nohide' on referral exports. Signed-off-by: Steve Dickson --- support/nfs/exports.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'support/nfs') diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 6b56708..525e5b1 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -641,6 +641,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; for (p = ep->e_secinfo; p->flav; p++) p->flags |= ep->e_flags & ~NFSEXP_SECINFO_FLAGS; -- cgit