From 2b55a4904590b13ad706c069e73e1f38d92d8085 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 6 Apr 2011 05:34:13 +0000 Subject: nfs: convert errno EDQUOT into appropriate nfs-errno. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 2607 (Fileop fails when quota is enabled) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2607 --- xlators/nfs/server/src/nfs3-helpers.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit