Error reporting

From Linux NFS

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
Example: svcgssd doesn't always give helpful errors on context creation failures, do to two problems:
Example: svcgssd doesn't always give helpful errors on context creation failures, do to two problems:
-
  1. Our kernel gss code is returning -EINVAL on most errors.
+
1. Our kernel gss code is returning -EINVAL on most errors.
-
  2. svcgssd is using nfs-utils qword_* functions, wihch don't return errors.
+
2. svcgssd is using nfs-utils qword_* functions, wihch don't return errors.
Fixing #1 is just a matter of choosing appropriate error codes--just find existing errno's which aren't otherwise used and have some vague relationship to the problem.  For number 2, we should just make the relevant functions return int instead of void.
Fixing #1 is just a matter of choosing appropriate error codes--just find existing errno's which aren't otherwise used and have some vague relationship to the problem.  For number 2, we should just make the relevant functions return int instead of void.

Revision as of 21:38, 28 May 2007

Note all the places where something could go wrong (due to user error, or whatever) while setting up an NFSv4 client or server, try it, and see if what happens points you towards the solution.

Example: svcgssd doesn't always give helpful errors on context creation failures, do to two problems: 1. Our kernel gss code is returning -EINVAL on most errors. 2. svcgssd is using nfs-utils qword_* functions, wihch don't return errors.

Fixing #1 is just a matter of choosing appropriate error codes--just find existing errno's which aren't otherwise used and have some vague relationship to the problem. For number 2, we should just make the relevant functions return int instead of void.

Personal tools