Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NhVWj-00087g-4l for mharc-grub-devel@gnu.org; Tue, 16 Feb 2010 17:04:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhVWg-00085V-Do for grub-devel@gnu.org; Tue, 16 Feb 2010 17:04:14 -0500 Received: from [140.186.70.92] (port=43103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhVWT-0007pt-9S for grub-devel@gnu.org; Tue, 16 Feb 2010 17:04:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhVWS-0005Kp-4H for grub-devel@gnu.org; Tue, 16 Feb 2010 17:04:01 -0500 Received: from stallman.rootnode.net ([89.248.165.10]:43631) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhVWR-0005Kf-V4 for grub-devel@gnu.org; Tue, 16 Feb 2010 17:04:00 -0500 Received: from athlon.localnet (chello087207210055.chello.pl [87.207.210.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by stallman.rootnode.net (Exchange) with ESMTP id 678B746F19 for ; Tue, 16 Feb 2010 23:03:58 +0100 (CET) From: Szymon Janc To: grub-devel@gnu.org Date: Tue, 16 Feb 2010 23:04:20 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.32-trunk-686; KDE/4.3.4; i686; ; ) References: <201002042201.17127.szymon@janc.net.pl> <201002161958.09505.szymon@janc.net.pl> <2e59e6971002161311r2a9b1f6fn9b910f52d61f42c@mail.gmail.com> In-Reply-To: <2e59e6971002161311r2a9b1f6fn9b910f52d61f42c@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Message-Id: <201002162304.20138.szymon@janc.net.pl> Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH][UPDATED] support for xz compression format X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2010 22:04:14 -0000 Dnia wtorek 16 luty 2010 o 22:11:50 richardvoigt@gmail.com napisa=C5=82(a= ): > Since gzip format allows decompression in pipeline mode, it's a > virtual certainty that nothing from the footer is required for > processing. >=20 > And of course this is true of the xz format as well. I quote from the > documentation: The only reason for checking footer is to get uncompressed data size to k= eep=20 grub_file_read() happy. Possible sollutions to avoid this: - add size field in stream header and break compatibility with upstream x= z/gz,=20 will require forking upstream compression tools or create special tool fo= r=20 crafting upstream created files =20 - increase size while consuming blocks (possible with xz, don't know if w= ith=20 gz), this leaves possibility to get grub_file_read() unhappy - try to guess uncompressed data size based on compressed size --=20 Szymon K. Janc szymon@janc.net.pl // GG: 1383435