summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-11-09 00:36:24 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-09 02:12:15 -0800
commit030393152fe6e7660cc4464be8b65ec1d6ecbbc5 (patch)
treee3906ad735007ede2e6d6c7386baab8e633bf703 /xlators/nfs/server
parent19aa7b6923f84ffb8a558263e2dede4661862342 (diff)
mnt3: Fail mount requests for disallowed clients
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1385 (showmount says no access though it can be mounted.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1385
Diffstat (limited to 'xlators/nfs/server')
-rw-r--r--xlators/nfs/server/src/mount3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c
index 47158dcca..2e4a73908 100644
--- a/xlators/nfs/server/src/mount3.c
+++ b/xlators/nfs/server/src/mount3.c
@@ -767,10 +767,11 @@ mnt3svc_mnt (rpcsvc_request_t *req)
}
ret = mnt3_check_client_net (ms, req, exp->vol);
- if (ret == -1) {
+ if (ret == RPCSVC_AUTH_REJECT) {
mntstat = MNT3ERR_ACCES;
gf_log (GF_MNT, GF_LOG_DEBUG, "Client mount not allowed");
- goto rpcerr;
+ ret = -1;
+ goto mnterr;
}
ret = mnt3svc_mount (req, ms, exp);