summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-04-06 05:37:05 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 10:52:05 -0700
commit8e8d4e0869623f352c7993293c6e132d795a34bf (patch)
treea80d9f34f49befd5056835908c8bccbf66ddde50 /xlators/nfs/server/src
parent9bff4a73fedd388bb9c57a3e999361540ac333eb (diff)
nfs: convert errno EDQUOT into appropriate nfs-errno.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@gluster.com> BUG: 2607 (Fileop fails when quota is enabled) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2607
Diffstat (limited to 'xlators/nfs/server/src')
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c4
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 c80f637fafc..468f8f7af4a 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -256,6 +256,10 @@ nfs3_errno_to_nfsstat3 (int errnum)
stat = NFS3ERR_IO;
break;
+ case EDQUOT:
+ stat = NFS3ERR_DQUOT;
+ break;
+
default:
stat = NFS3ERR_SERVERFAULT;
break;