Red Hat Bugzilla – Bug 63321
Cluadmin's nfs export checks fail for numeric options
Last modified: 2013-03-06 00:55:28 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
Description of problem:
Tim Burke wrote:
When you create an NFS service, it prompts for export options. For example,
these may be rw,root_squash. There are checks in the routines called by
cluadmin to validate that the export options are vaild. This is relatively
simple for cases like "rw" and "root_squash". There are other export options
which allow you to designate numeric values. For example:
Test case: verify that you can designate numeric export options during service
creation. Note: currently cluadmin emits a warning on this type, which it shouldn't.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Specify one of those numeric parameters and cluadmin will complain.
2.This problem only causes an annoying message, fortunately you can continue to
enter the desired parameter.
Actual Results: Warning messages appear.
This was due to two problems:
(1) cluadmin.tcl squeezed the whitespace out of mount/export options _after_ it
checked them in svc_db.c, and
(2) svc_db.c had two slight problems - the checks for the numeric args in
question ("anonuid", "anongid") didn't exist and the check function itself had a
bug when parsing numeric arguments.
Fixes in pool.