diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-10-26 06:39:08 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-26 23:11:48 -0700 |
commit | 1a2463cefac2cd9faf80ce7041b2fa1d9cfff36c (patch) | |
tree | e84866e63067afca5e40ed1c2fd1d2a92af1cfc2 /xlators/nfs/server/src/nfs3-helpers.c | |
parent | 29dc176fa7832699b34a3a3e2f1a5f14ae55274a (diff) |
nfs3: Translate ENOTCONN into IO error for client
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
Diffstat (limited to 'xlators/nfs/server/src/nfs3-helpers.c')
-rw-r--r-- | xlators/nfs/server/src/nfs3-helpers.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |