aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2005-01-04 05:47:29 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-04 05:47:29 -0800
commit133ed8cc4a27a342738afd486670a1d6cff4d5a5 (patch)
treef133fd60ee4c5175abda840b0b0694ce4adc57d9 /fs
parentcde2c5bca0af59042c898e934a88ff0677c428f5 (diff)
downloadhistory-133ed8cc4a27a342738afd486670a1d6cff4d5a5.tar.gz
[PATCH] knfsd: nfsd4: encode_dirent: fix dropit return
We need to handle nfserr_dropit as a special case here, since we don't want to return it in the rdattr_error attribute. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 196fb5dbafe8d1..dd4355cc9e6a58 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1861,6 +1861,8 @@ nfsd4_encode_dirent(struct readdir_cd *ccd, const char *name, int namlen,
case nfserr_resource:
nfserr = nfserr_toosmall;
goto fail;
+ case nfserr_dropit:
+ goto fail;
default:
/*
* If we get here, we experienced a miscellaneous