From owner-freebsd-bugs Sat Aug 17 7:10: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B467337B400 for ; Sat, 17 Aug 2002 07:10:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 761D943E77 for ; Sat, 17 Aug 2002 07:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7HEA3JU079279 for ; Sat, 17 Aug 2002 07:10:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7HEA3ba079278; Sat, 17 Aug 2002 07:10:03 -0700 (PDT) Date: Sat, 17 Aug 2002 07:10:03 -0700 (PDT) Message-Id: <200208171410.g7HEA3ba079278@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Tha KreAture" Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic. Reply-To: "Tha KreAture" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/41723; it has been noted by GNATS. From: "Tha KreAture" To: , 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