summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2012-05-15 16:00:52 +0530
committerAnand Avati <avati@redhat.com>2012-05-15 16:10:35 -0700
commitfd3d555dea7c151265ca252d3c55129ba3fcdbb6 (patch)
treec78c26852c50945e16b1258eac339c9772c19e1a
parent6b993b7b515a096f61185e8a5df88adb2f7fa8e9 (diff)
nfs/mount: avoid duplicate reply on ENOENT
Change-Id: I310e525b5bd302c0acadcc077213fbd570bf772d BUG: 820582 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.com/3333 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishna Srinivas <krishna@gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--xlators/nfs/server/src/mount3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c
index 07eea4747f5..d088b3c53ca 100644
--- a/xlators/nfs/server/src/mount3.c
+++ b/xlators/nfs/server/src/mount3.c
@@ -1207,6 +1207,7 @@ mnt3svc_umnt (rpcsvc_request_t *req)
ret = mnt3svc_umount (ms, dirpath, hostname);
if (ret == -1) {
+ ret = 0;
mstat = MNT3ERR_NOENT;
}
/* FIXME: also take care of the corner case where the