From 1a2463cefac2cd9faf80ce7041b2fa1d9cfff36c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 26 Oct 2010 06:39:08 +0000 Subject: nfs3: Translate ENOTCONN into IO error for client Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 1923 (Unknown error 526 when one of the subvolumes for distribute is down) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1923 --- xlators/nfs/server/src/nfs3-helpers.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/nfs') diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c index 15953438a..2a8b1b5b1 100644 --- a/xlators/nfs/server/src/nfs3-helpers.c +++ b/xlators/nfs/server/src/nfs3-helpers.c @@ -237,6 +237,10 @@ nfs3_errno_to_nfsstat3 (int errnum) stat = NFS3ERR_STALE; break; + case ENOTCONN: + stat = NFS3ERR_IO; + break; + default: stat = NFS3ERR_SERVERFAULT; break; -- cgit