Date: Tue, 29 Jul 2003 17:27:14 +0200 (CEST) From: Bogdan TARU <bgd@icomag.de> To: Drew Eckhardt <drew@PoohSticks.ORG> Cc: freebsd-hackers@freebsd.org Subject: Re: file size different from ls to du Message-ID: <20030729172615.N13255-100000@fw.office.icom> In-Reply-To: <200307291524.h6TFO3J06998@revolt.poohsticks.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > > -- > <a href="http://www.poohsticks.org/drew/">Home Page</a> > For those who do, no explanation is necessary. > For those who don't, no explanation is possible. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030729172615.N13255-100000>