[OpenAFS] Re: modload failing, Sol10 SPARC, 1.4.14

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Wed, 1 Jun 2011 07:38:10 -0400


On Wed, 1 Jun 2011 00:25:00 -0500
Andrew Deason <adeason@sinenomine.net> wrote:

> On Tue, 31 May 2011 18:44:24 -0400
> Derrick Brashear <shadow@gmail.com> wrote:
> 
> > or, for now, just replace that with
> > memset(dirHeader->hashTable, 0, NHASHENT*(unsigned short));
> > 
> > and move along?
> 
> Yeah but, I'd like to get a better solution for when this happens again.
> Prohibiting loops like that would be a bizarre requirement :)

loops like that should not be written.  memset() can do a better job of
zero'ing memory than iterating each member.