diff options
author | Alexander Graf <agraf@suse.de> | 2009-08-05 09:49:37 +0200 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2014-12-10 14:51:29 +0300 |
commit | a2e24b8fd956301f23b84bf1699db2c247b989d5 (patch) | |
tree | 2a39289061f1b69427e5e5c11353158e99caeb7e /block/Makefile.objs | |
parent | 94907b1ca030a998f1bfb6bad966b35626e734d1 (diff) | |
download | qemu-a2e24b8fd956301f23b84bf1699db2c247b989d5.tar.gz qemu-a2e24b8fd956301f23b84bf1699db2c247b989d5.tar.bz2 qemu-a2e24b8fd956301f23b84bf1699db2c247b989d5.zip |
block: Add support for DictZip enabled gzip files
DictZip is an extension to the gzip format that allows random seeks in gzip
compressed files by cutting the file into pieces and storing the piece offsets
in the "extra" header of the gzip format.
Thanks to that extension, we can use gzip compressed files as block backend,
though only in read mode.
This makes a lot of sense when stacked with tar files that can then be shipped
to VM users. If a VM image is inside a tar file that is inside a DictZip
enabled gzip file, the user can run the tar.gz file as is without having to
extract the image first.
Tar patch follows.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
[TH: Use bdrv_open options instead of filename]
Signed-off-by: Tim Hardeck <thardeck@suse.de>
[AF: Error **errp added for bdrv_file_open, bdrv_delete -> bdrv_unref]
[AF: qemu_opts_create_nofail() -> qemu_opts_create(),
bdrv_file_open() -> bdrv_open(), based on work by brogers]
[AF: error_is_set() dropped for v2.1.0-rc0]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'block/Makefile.objs')
-rw-r--r-- | block/Makefile.objs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/Makefile.objs b/block/Makefile.objs index 04b0e43eb..080fd26e2 100644 --- a/block/Makefile.objs +++ b/block/Makefile.objs @@ -24,6 +24,7 @@ block-obj-y += accounting.o common-obj-y += stream.o common-obj-y += commit.o common-obj-y += backup.o +common-obj-y += dictzip.o iscsi.o-cflags := $(LIBISCSI_CFLAGS) iscsi.o-libs := $(LIBISCSI_LIBS) |