path: root/block/Makefile.objs
diff options
authorAlexander Graf <>2009-08-05 07:49:37 (GMT)
committerYury Usishchev <>2014-12-10 11:51:29 (GMT)
commita2e24b8fd956301f23b84bf1699db2c247b989d5 (patch)
tree2a39289061f1b69427e5e5c11353158e99caeb7e /block/Makefile.objs
parent94907b1ca030a998f1bfb6bad966b35626e734d1 (diff)
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 <> Signed-off-by: Bruce Rogers <> Signed-off-by: Andreas Färber <> [TH: Use bdrv_open options instead of filename] Signed-off-by: Tim Hardeck <> [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 <>
Diffstat (limited to 'block/Makefile.objs')
1 files changed, 1 insertions, 0 deletions
diff --git a/block/Makefile.objs b/block/Makefile.objs
index 04b0e43..080fd26 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)