Date: Sat, 17 Aug 2002 07:10:03 -0700 (PDT) From: "Tha KreAture" <Tha_KreAture@hotmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic. Message-ID: <200208171410.g7HEA3ba079278@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/41723; it has been noted by GNATS.
From: "Tha KreAture" <Tha_KreAture@hotmail.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <kreature@c2i.net>
Cc:
Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic.
Date: Sat, 17 Aug 2002 16:11:53 +0200
OK, the problem seems to be that one of the variables in the calculation has
overflowed.
When used in the calculation it causes the "integer divide fault".
Possible solution:
I'm testing if a change of the variables involved to long will fix this.
It is definately caused by the avgfilesize setting. If it's high it will
wrap when multiplied with the fs_avgfpdir value.
If we asume the average files per directory is 64, we see that a setting of
67108864 or higher for average file size, will overflow the int. I was
using 256000000 wich is 188891136 too much.
I think ALL variables in this section (and the rest of the filesystem
source) shoulr all be long or similar.
Kyrre
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208171410.g7HEA3ba079278>
