Skip to contentSkip to conversation

kNFSd - 1 of 4 - Convert error status for failed lookup("..") properly.

PATCH New NeilBrown 1 participant 1 message Nov 21, 2003

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 kNFSd - 1 of 4 - Convert error status for failed lookup("..") properly.

Linus,
Here are 4 patches to knfsd that I believe are appropriate for pre 2.6.0. The first two are simple bug fixes.
The third is the largest and need to change a little bit of infrastructure
to avoid ignoring a possible NULL return from kmalloc.
The fourth extends dnotify functionality w.r.t. nfsd file access.

Thanks,
NeilBrown

### Comments for ChangeSet

We weren't converting the -E* error code to an nfserr_* error code as we should.

----------- Diffstat output ------------

 ./fs/nfsd/vfs.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/vfs.c renamed from fs/nfsd/vfs.c~current~ +1 -1
diff ./fs/nfsd/vfs.c~current~ ./fs/nfsd/vfs.c
@@ -173,7 +173,7 @@ nfsd_lookup(struct svc_rqst *rqstp, stru
 				err = PTR_ERR(exp2);
 				dput(dentry);
 				mntput(mnt);
-				goto out;
+				goto out_nfserr;
 			}
 			if (!exp2) {
 				dput(dentry);

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs