Patchwork [BUG:1923,3/3] nfs3: Translate ENOTCONN into IO error for client

login
register
Submitter Shehjar Tikoo
Date 2010-10-26 12:09:08
Message ID <1288094948-22843-3-git-send-email-shehjart@gluster.com>
Download mbox | patch
Permalink /patch/5577/
State Accepted
Headers show

Comments

Shehjar Tikoo - 2010-10-26 12:09:08
From: Shehjar Tikoo <shehjart@gluster.com>


Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
---
 xlators/nfs/server/src/nfs3-helpers.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index 1595343..2a8b1b5 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;