From: Andrew Deason Date: Wed, 8 Sep 2010 19:32:35 +0000 (-0500) Subject: DAFS: raise vhashsize limit X-Git-Tag: upstream/1.8.0_pre1^2~4826 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b2d067a913d3c2e5dbfe756b7752ade308f967c1;p=packages%2Fo%2Fopenafs.git DAFS: raise vhashsize limit Raise the maximum specifiable vhashsize to 28 (from 14). Specifying a vhashsize over 14 can be reasonable if you expect to have a few million volumes on a fileserver. Change-Id: I90b17209fa25032f6e2bdec9abf80e578fc9b486 Reviewed-on: http://gerrit.openafs.org/2725 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/vol/volume.c b/src/vol/volume.c index b9b0ab3e7..9c5099257 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -7607,8 +7607,8 @@ FreeVolumeHeader(Volume * vp) int VSetVolHashSize(int logsize) { - /* 64 to 16384 hash buckets seems like a reasonable range */ - if ((logsize < 6 ) || (logsize > 14)) { + /* 64 to 268435456 hash buckets seems like a reasonable range */ + if ((logsize < 6 ) || (logsize > 28)) { return -1; }