[linux-lvm] [PATCH] calc_max_buckets bug

Chris Mason mason at suse.com
Wed Mar 10 13:13:01 UTC 2004


On Wed, 2004-03-10 at 10:44, Joe Thornber wrote:
> On Wed, Mar 10, 2004 at 09:10:59AM -0500, Chris Mason wrote:
> > Hello everyone,
> > 
> > This is in both 2.4.x lvm and 2.6.x dm code, calc_max_buckets is broken
> > for 32bit machines with > 4GB of ram.  This leads to -ENOMEM errors
> > during snapshot creation.
> 
> heh, this must be the only bit of code I copied from LVM1 :) Serves me
> right for being lazy.

Do you see any problems with using a smaller fixed size on the hash
table.  It seems like 2MB should be enough to me.

-chris





More information about the linux-lvm mailing list