mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
afsd: Detect -dcache presence correctly
cmd_OptionAsInt will return 0 if the requested option is present and valid. Change-Id: Ie5154648ccb274b04617dcb8cc397ed3aa3d97e6 Reviewed-on: http://gerrit.openafs.org/7444 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
9eb924f16c
commit
258a092260
@ -1735,7 +1735,7 @@ mainproc(struct cmd_syndesc *as, void *arock)
|
||||
}
|
||||
}
|
||||
|
||||
if (cmd_OptionAsInt(as, OPT_dcache, &dCacheSize))
|
||||
if (cmd_OptionAsInt(as, OPT_dcache, &dCacheSize) == 0)
|
||||
sawDCacheSize = 1;
|
||||
|
||||
cmd_OptionAsInt(as, OPT_volumes, &vCacheSize);
|
||||
|
Loading…
Reference in New Issue
Block a user