From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6761146a935a00d6 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-02-03 07:30:11 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stanford.edu!news-proxy.abbnm.com!newsboy.eng.abbnm.com!not-for-mail From: peter@abbnm.com (Peter da Silva) Newsgroups: comp.unix.tru64 Subject: Re: How is this possible? Date: Tue, 3 Feb 2004 15:11:42 +0000 (UTC) Organization: ABB Inc., Network Management Division Message-ID: References: NNTP-Posting-Host: grendel.eng.abbnm.com X-Trace: jeeves.eng.abbnm.com 1075821102 50555 198.178.0.150 (3 Feb 2004 15:11:42 GMT) X-Complaints-To: usenet@jeeves.eng.abbnm.com NNTP-Posting-Date: Tue, 3 Feb 2004 15:11:42 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: peter@abbnm.com (Peter da Silva) Xref: archiver1.google.com comp.unix.tru64:11151 In article , Zlatko Rek wrote: > The disk is 20GB and the file is 620GB! In UNIX file access is performed one of two ways, through memory mapping or through stream I/O, both of which can produce this result albeit through different operations. If the file was memory mapped but unallocated and a program wrote to a block near the end of the mapped region, or if the file was a stream and the program performed a very large seek operation and then wrote some data, the result would be what's called a "sparse file": a file that is logically thousands or (in this case) millions of virtual "null" blocks that aren't actually allocated from the pool of free blocks on disk, with a handful of actual data blocks where writes have actually occurred. -- I've seen things you people can't imagine. Chimneysweeps on fire over the roofs of London. I've watched kite-strings glitter in the sun at Hyde Park Gate. All these things will be lost in time, like chalk-paintings in the rain. `-_-' Time for your nap. | Peter da Silva | Har du kramat din varg, idag? 'U`