-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Aug 2003 19:02:02 +0000 (UTC), Mark Neidorff wrote:

> Since I don't know, I'll ask....what are sparse blocks and

Think of sparse blocks (aka "sparse files") as files with holes. Empty
[not yet used] parts of a file are not written to disk in the normal
way where they would occupy the same space on disk as if loaded fully
into memory.  Upon reading parts of the file from disk, skipped blocks
(the "holes") would be recognized and substituted with zeroes.  As a
result, it is possible to create huge empty data structures and only
the sparse areas, which are filled with values, would occupy space on
disk.

> why does `ls -l` show 19Mb and du show 56k?

du examines the true number of file-system blocks used on disk,
whereas ls prints the size of a file it would have when read into
memory completely.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/RWv20iMVcrivHFQRAii9AJ9VPCK5PzMWv416H+ljfmW3RFpQpgCdGHsc
erHJcC4A/Robsj+mhfveHUE=
=i4Yj
-----END PGP SIGNATURE-----


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to