]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Fix fs bypassthreshold to accept a size of -1 to disable
authorPhillip Moore <w.phillip.moore@gmail.com>
Tue, 19 Oct 2010 16:17:20 +0000 (12:17 -0400)
committerDerrick Brashear <shadow@dementia.org>
Wed, 3 Nov 2010 10:48:50 +0000 (03:48 -0700)
commit3991cf2f0fcea26c3d766c54e1b8161226980841
tree7fa3f4080b75016316887af79d0b2f299f4705a6
parent2d376fcf2684433310cc7e7cf4cf74343e5ead6c
Fix fs bypassthreshold to accept a size of -1 to disable

The fs bypassthreshold command assumes a value of -1 means the feature
is disabled, but the CLI refused to accept this argument, since it is
not strictly a digit (according ti isdigit()).  This patch accepts the
string -1, and makes it possible to both enable AND disable this
feature.

Reviewed-on: http://gerrit.openafs.org/3009
Reviewed-by: Matt Benjamin <matt@linuxbox.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 1fa575c09ea7aa66e657b226465cb90dbba4af70)
Change-Id: I0e748b513bcb97c436bd10c8a80222fc10fce08c
Reviewed-on: http://gerrit.openafs.org/3228
src/venus/fs.c