Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: peter@abbnm.com (Peter da Silva)
Subject: Re: How is this possible?
Date: Tue, 3 Feb 2004 15:11:42 +0000 (UTC)	[thread overview]
Message-ID: <bvodne$1hbr$3@jeeves.eng.abbnm.com> (raw)
In-Reply-To: bvo7lk$pmf$1@planja.arnes.si

In article <bvo7lk$pmf$1@planja.arnes.si>,
Zlatko Rek  <no.name@spam.com> 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`


  reply	other threads:[~2004-02-03 15:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-03 13:28 How is this possible? Zlatko Rek
2004-02-03 15:11 ` Peter da Silva [this message]
2004-02-04  7:10   ` Zlatko Rek
2004-02-04 18:57     ` Peter da Silva
2004-02-08  4:11 ` Bob Harris
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox