diff options
author | Steve Dickson <steved@redhat.com> | 2008-01-09 13:13:31 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-01-09 13:13:31 -0500 |
commit | ec637de16210c1c6fcb3a0df34d7889592f577dc (patch) | |
tree | 63f2fa18997caaaea3f6e2f8b9a0069337895d27 /support/nfs/exports.c | |
parent | 5c4f17a97b1260e9c564ddd9887afaf50a26de9d (diff) | |
download | nfs-utils-ec637de16210c1c6fcb3a0df34d7889592f577dc.tar.gz nfs-utils-ec637de16210c1c6fcb3a0df34d7889592f577dc.tar.xz nfs-utils-ec637de16210c1c6fcb3a0df34d7889592f577dc.zip |
Automatically set 'nohide' on referral exports.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/exports.c')
-rw-r--r-- | support/nfs/exports.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |