Date: Sun, 18 Aug 2002 14:40:07 -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: <200208182140.g7ILe7k1073694@freefall.freebsd.org>
index | next in thread | raw e-mail
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: Sun, 18 Aug 2002 23:40:46 +0200
Ahh I see.
Well, then something is afoot. It may be some emulator or compiler option I
am using then, that allowed 'long' to deal with the numbers 'int' didn't.
???
Anyway: int was 32 bit and the sum of the calculations could well be too
large.
I agree that int64_t is a safer and more precise solution because it is not
subject to platform differences.
I still believe a check chould be added in the system to make sure it won't
allow values of avg file size and files pr dir to result in overflows when
multiplied. There are other similar calculations all through ffs that
really need to be addressed.
It's also ridiculus that newfs will segfault if you give it a blocksize
larger than 65536, but that is a different matter.
(and probably is already, or will be fixed.)
Kyrre
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208182140.g7ILe7k1073694>
