
If we now use compression, our disk space requirements are halved, since we
now only require 4 x 512 = 2048 bytes to store the /compress/2560bytefile file.
However, this is still using a full fragment or less in /compress which has a
fragment size of 2048 bytes. So when we check the space used by
/compress512/2560bytefile, we can see that the LZ compression algorithm has
actually shrunk the file to 20% (512 / 2560) or less of its original size. This is not
too surprising since we know that the shell script
mkfile (as given in 8.5.2, “How
to Use Fragments for Disk Usage Efficiency” on page 272) just creates a file that
has the word yes repeated on each ...