From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 29 08:24:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90F5737B401 for ; Tue, 29 Jul 2003 08:24:06 -0700 (PDT) Received: from revolt.poohsticks.org (revolt.poohsticks.org [63.227.60.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B7743FDF for ; Tue, 29 Jul 2003 08:24:05 -0700 (PDT) (envelope-from drew@revolt.poohsticks.org) Received: from revolt.poohsticks.org (localhost [127.0.0.1]) by revolt.poohsticks.org (8.11.3/8.11.3) with ESMTP id h6TFO3J06998; Tue, 29 Jul 2003 09:24:03 -0600 (MDT) (envelope-from drew@revolt.poohsticks.org) Message-Id: <200307291524.h6TFO3J06998@revolt.poohsticks.org> To: Bogdan TARU In-reply-to: Your message of "Tue, 29 Jul 2003 17:19:07 +0200." <20030729171356.M2453-100000@fw.office.icom> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6995.1059492242.1@revolt.poohsticks.org> Date: Tue, 29 Jul 2003 09:24:03 -0600 From: Drew Eckhardt cc: freebsd-hackers@freebsd.org Subject: Re: file size different from ls to du X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 15:24:06 -0000 In message <20030729171356.M2453-100000@fw.office.icom>, bgd@icomag.de writes: >(17:13) bgd@(bgd)[~/temp] ls -alsh my_file >19120 -rw-r--r-- 1 root bgd 763M Jul 29 16:56 my_file >(17:13) bgd@(bgd)[~/temp] du -sh my_file > 19M my_file > > So the 'ls -alsh' shows a file in size of 763M, but 19M of sectors are >really 'occupied'. Can someone explain, please? unix files can be sparse. -- Home Page For those who do, no explanation is necessary. For those who don't, no explanation is possible.