grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]: grub: Fix ofdisk disk cache corruption.


From: Pavel Roskin
Subject: Re: [PATCH]: grub: Fix ofdisk disk cache corruption.
Date: Sun, 12 Apr 2009 17:01:07 -0400

On Sun, 2009-04-12 at 01:01 -0700, David Miller wrote:

> > That's a 3 bit hash.  The risk of collisions is very high.  I would
> > understand if you had 8 entries for the hash values, but the hash values
> > themselves should be reasonably unique.
> 
> In my testing there weren't many collisions.
> 
> I think fixing disk cache corruption is more important than
> arguing over the distribution properties of the hash function
> I have choosen.
> 
> Right?

It's not just about distribution properties.  My impression is that your
code misuses hashes as indices in a table.  Let's make the hash 32-bit.
That would make it harder to misuse.

-- 
Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]