From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md0y2-0002tp-DC for qemu-devel@nongnu.org; Mon, 17 Aug 2009 08:05:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md0xx-0002qK-7k for qemu-devel@nongnu.org; Mon, 17 Aug 2009 08:05:37 -0400 Received: from [199.232.76.173] (port=48620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md0xx-0002qH-4P for qemu-devel@nongnu.org; Mon, 17 Aug 2009 08:05:33 -0400 Received: from mail-yx0-f188.google.com ([209.85.210.188]:45147) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Md0xw-0004cY-NF for qemu-devel@nongnu.org; Mon, 17 Aug 2009 08:05:32 -0400 Received: by yxe26 with SMTP id 26so3741885yxe.4 for ; Mon, 17 Aug 2009 05:05:32 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4A894786.1040306@gnu.org> Date: Mon, 17 Aug 2009 14:05:26 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1249486402-10824-1-git-send-email-agraf@suse.de> <4A849A40.3080205@codemonkey.ws> <1F7A05E1-0B0B-4C68-B07B-2F36B9BECF81@suse.de> In-Reply-To: <1F7A05E1-0B0B-4C68-B07B-2F36B9BECF81@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Add tar container format List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Kevin Wolf , qemu-devel@nongnu.org, Christoph Hellwig > Bzip2 is supposed to be chunkable, but I haven't found anyone who did > this yet and my knowledge in compression is pretty small. Bzip2 proceeds in chunks of approximately 100-900 KB size. However, the size is taken after an initial RLE compression pass. So bzip2 is only chunkable if you remove the initial RLE compression---this means hacking the bzip2 executable (see ADD_CHAR_TO_BLOCK and add_pair_to_block) in bzip2's bzlib.c. Using GIO may have been a good idea a few years ago, but it seems a bit overengineered given that the block layer of qemu works well and it is pretty complex. Paolo