afsd: honor the -nbiods option

The commit:

 "afsd: Move to newer cmd syntax" (fbe6f0f4ad)

removed setting the flag variable "sawBiods" when the -nbiods option is
used, this results in the -nbiods value being ignored and the default
value being used.

This problem was identified by the cppcheck static analysis tool.

Note: The -nbiods option is only for AIX systems.

Change-Id: I9a8d199a212a164660c1e9f8b4151792d9c9d0e0
Reviewed-on: https://gerrit.openafs.org/15212
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Cheyenne Wills 2022-12-05 15:19:17 -07:00 committed by Michael Meffie
parent 094066b485
commit df010f3e7c

View File

@ -2228,6 +2228,7 @@ CheckOptions(struct cmd_syndesc *as)
("afsd: [-biods] currently only enabled for aix3.x VM supported systems\n");
#else
cmd_OptionAsInt(as, OPT_biods, &nBiods);
sawBiod = 1;
#endif
}
cmd_OptionAsInt(as, OPT_prealloc, &preallocs);