Add tar container format
authorAlexander Graf <agraf@suse.de>
Wed, 5 Aug 2009 15:28:38 +0000 (17:28 +0200)
committerJunfeng Dong <junfeng.dong@intel.com>
Tue, 19 Nov 2013 10:57:38 +0000 (18:57 +0800)
commitb3ac76e1e06186321251741807dd4413c3ccfedc
treea2a88db1bbb7e7a729d788b8dc6952518d8af3fc
parent3d48f83216cd652a43e3875c853a4f11c2fc977e
Add tar container format

Tar is a very widely used format to store data in. Sometimes people even put
virtual machine images in there.

So it makes sense for qemu to be able to read from tar files. I implemented a
written from scratch reader that also knows about the GNU sparse format, which
is what pigz creates.

This version checks for filenames that end on well-known extensions. The logic
could be changed to search for filenames given on the command line, but that
would require changes to more parts of qemu.

The tar reader in conjunctiuon with dzip gives us the chance to download
tar'ed up virtual machine images (even via http) and instantly make use of
them.

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>
Signed-off-by: Andreas Färber <afaerber@suse.de>
block/Makefile.objs
block/tar.c [new file with mode: 0644]