From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 29 08:27:17 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 CFA4137B401 for ; Tue, 29 Jul 2003 08:27:17 -0700 (PDT) Received: from mail.icomag.de (ns.icomag.de [195.227.115.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id A124B43F75 for ; Tue, 29 Jul 2003 08:27:16 -0700 (PDT) (envelope-from bgd@icomag.de) Received: from localhost (localhost [127.0.0.1]) by mail.icomag.de (Postfix) with ESMTP id 9FDB32301D; Tue, 29 Jul 2003 17:27:15 +0200 (CEST) Received: by mail.icomag.de (Postfix, from userid 1019) id 66CE22301F; Tue, 29 Jul 2003 17:27:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.icomag.de (Postfix) with ESMTP id 65FFE2301D; Tue, 29 Jul 2003 17:27:14 +0200 (CEST) Date: Tue, 29 Jul 2003 17:27:14 +0200 (CEST) From: Bogdan TARU X-X-Sender: To: Drew Eckhardt In-Reply-To: <200307291524.h6TFO3J06998@revolt.poohsticks.org> Message-ID: <20030729172615.N13255-100000@fw.office.icom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020531 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:27:18 -0000 Hi Drew, I have tried to create some files of myself, with 'spaces' in them (holes?), but they don't act like this. So could you please explain what 'sparse' means, and the 'trick' to create them? Thanks, bogdan On Tue, 29 Jul 2003, Drew Eckhardt wrote: > 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. >