To summarise the summary of the summary:
I stuffed up when I tried to interpret the error, but after much
sensible correction, here is a patch. Please try it, and suggest any
other errs that should be tested for (or maybe we should invert the
sense of the test, and test for error codes that ACCESS is allowed to
return.
2.4.0 seems to get it right.
NeilBrown
--- ./fs/nfsd/vfs.c 2001/01/10 05:03:28 1.11
+++ ./fs/nfsd/vfs.c 2001/01/24 06:02:01
@@ -448,7 +448,9 @@
error = nfsd_permission(export, dentry, (map->how | NO_OWNER_OVERRIDE));
if (error == 0)
result |= map->access;
- else if ((error == nfserr_perm) || (error == nfserr_acces)) {
+ else if ((error == nfserr_perm) ||
+ (error == nfserr_acces) ||
+ (error == nfserr_rofs)) {
/*
* This access type is denyed; but the
* access query itself succeeds.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/