New APIs: compress-out, compress-device-out.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 28 Sep 2011 10:14:06 +0000 (11:14 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 28 Sep 2011 13:52:56 +0000 (14:52 +0100)
commit8403f5a9d8f1451e2c2b029b51bac18724b18ebf
tree1a9ab11d9c3606e49fd0d55ac44773ef6afc4e53
parentffc01285ee4289da90983a3320873f27b3d31c4d
New APIs: compress-out, compress-device-out.

These APIs let you copy compressed files or devices out from the disk
image.

Compression is useful for large images which are mostly zeroes.  We
cannot currently do sparseness detection, and compression gives us a
form of zero detection for free.

Example usage:

$ guestfish --ro -a /dev/vg_pin/F16x64 -i \
    compress-out gzip /etc/passwd /tmp/passwd.gz
$ file -z /tmp/passwd.gz
/tmp/passwd.gz: ASCII text (gzip compressed data, was "passwd", from
Unix, last modified: Sun Aug 28 14:40:46 2011)
appliance/packagelist.in
daemon/Makefile.am
daemon/compress.c [new file with mode: 0644]
generator/generator_actions.ml
po/POTFILES.in
src/MAX_PROC_NR