Add support for DictZip enabled gzip files
Subsystems (2)
PATCH 1/1 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 will follow.
Signed-off-by Alexander Graf <[email protected]>
--- Makefile | 2 +- block/dictzip.c | 492 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 493 insertions(+), 1 deletions(-) create mode 100644 block/dictzip.c
Makefile +1 -1
@@ -73,7 +73,7 @@ block-obj-$(CONFIG_AIO) += posix-aio-compat.o block-nested-y += cow.o qcow.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o -block-nested-y += parallels.o nbd.o +block-nested-y += parallels.o nbd.o dictzip.o block-nested-$(CONFIG_WIN32) += raw-win32.o block-nested-$(CONFIG_POSIX) += raw-posix.o block-nested-$(CONFIG_CURL) += curl.o
block/dictzip.c new file +492 -0
492 lines not on this page · raw message
Signature · 1 line
1.6.0.2