From owner-freebsd-stable Tue Aug 13 18: 5: 8 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D7FE37B401 for ; Tue, 13 Aug 2002 18:05:05 -0700 (PDT) Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B90143E42 for ; Tue, 13 Aug 2002 18:05:03 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id LAA33339; Wed, 14 Aug 2002 11:05:01 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id LAA06018; Wed, 14 Aug 2002 11:05:01 +1000 (EST) Message-Id: <200208140105.LAA06018@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: Danny Carroll Cc: stable@FreeBSD.ORG Subject: Re: Bug in Zoo? Or is it in ls or ffs? In-reply-to: Your message of 13 Aug 2002 15:43:00 +0200. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 Aug 2002 11:05:01 +1000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > As you can see the size is not taken up in disk space so I suspect the > bug is in ls. DU, DF and the left hand column of LS looks OK. No, it's a probably a bug in zoo, lseek()ing to a negative offset and/or getting long <-> long long conversions wrong. This gets turned into a large positive offset. (4294967352 is 2^32 + 56) Then when zoo writes a single byte, the filesystem has to allocate single and double-indirect blocks, plus the data, which is where the 40 used blocks comes from. This behaviour doesn't force the filesystem to allocate of all the 4G of intervening holes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message