From owner-freebsd-questions Wed Aug 6 23:15:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA20769 for questions-outgoing; Wed, 6 Aug 1997 23:15:32 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id XAA20764 for ; Wed, 6 Aug 1997 23:15:26 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id QAA22132; Thu, 7 Aug 1997 16:15:52 +1000 From: Greg Lehey Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id PAA02058; Thu, 7 Aug 1997 15:44:52 +0930 (CST) Message-Id: <199708070614.PAA02058@freebie.lemis.com> Subject: Re: File Size (quota.user) In-Reply-To: from "andrew@ugh.net.au" at "Aug 7, 97 01:38:19 pm" To: andrew@ugh.net.au Date: Thu, 7 Aug 1997 15:44:52 +0930 (CST) Cc: questions@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk andrew@ugh.net.au writes: > Hi, > > If I type ls -s quota.user I get: > > 48 quota.user > > If I type du -ks quota.user I get: > > 48 quota.user > > But if I type ls -l quota.user I get: > > -rw-r----- 1 root operator 2097120 Aug 7 13:32 quota.user > > That dosnt seem to add up.... Not if the file is full up to the point indicated by the 'size' parameter. In this case, you have a file with holes in it--something is allocated at the end, and possibly somewhere else, but there are areas in the address space which aren't allocated. Greg