From owner-freebsd-bugs Thu Feb 6 12:18:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA02030 for bugs-outgoing; Thu, 6 Feb 1997 12:18:29 -0800 (PST) Received: from sendero.i-connect.net ([206.190.144.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA02016 for ; Thu, 6 Feb 1997 12:18:25 -0800 (PST) Received: (from shimon@localhost) by sendero.i-connect.net (8.8.5/8.8.4) id NAA09334; Thu, 6 Feb 1997 13:17:01 -0800 (PST) Message-ID: X-Mailer: XFMail 1.1-alpha [p0] on FreeBSD Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199702052352.KAA26426@godzilla.zeta.org.au> Date: Thu, 06 Feb 1997 11:44:10 -0800 (PST) Organization: iConnect Corp. From: Simon Shapiro To: Bruce Evans Subject: Re: bin/2633: fsck -p in /etc/rc fails with cannot alloc nnnn by Cc: freebsd-bugs@freefall.freebsd.org Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi Bruce Evans; On 05-Feb-97 you wrote: > > Have you considered looking at the fact that fsck may be doing lseek or > > some other computation, based on the SIZE of the partition in bytes, > > encountering an integer overflow, or sign extention problem and trying to > > malloc (for example) a negative number, or a very small one, etc. > > > > Do we have llseek(2) in FreeBSD? > > BSD4.4Lite-derived systems have 64-bit off_t's and lseek(2). > > There are several overflow and sign extension bugs in plain BSD4.4Lite, > but FreeBSD has fixed many of them. The most common bug was to do an > overflowing multiplication of a daddr_t by a block size. fsck and many > other things didn't work for partitions >= 2GB in early versions of > FreeBSD because btodb() in overflowed on 32-bit > systems. There are probably still bugs for files >= 2GB but I don't > know of any for file systems >= 2GB. sendero.i-connect.net:/Archives/FreeBSD is 4GB. Many newsservers do that too. When we consider 50GB per system, there will be many 4GB+ filesystems. Besides, my first system had 26MB drive and we did not know what to do with all this space. Sendero (my development station) has 11 4GB drives... Simon