Received: from list by lists.gnu.org with archive (Exim 4.71) id 1R3v67-0003YZ-8d for mharc-grub-devel@gnu.org; Wed, 14 Sep 2011 15:26:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]:45516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3v64-0003YS-NT for grub-devel@gnu.org; Wed, 14 Sep 2011 15:26:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3v63-0007Wh-Ez for grub-devel@gnu.org; Wed, 14 Sep 2011 15:26:12 -0400 Received: from cox.rootnode.net ([89.248.165.14]:57921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3v63-0007WO-8N for grub-devel@gnu.org; Wed, 14 Sep 2011 15:26:11 -0400 Received: from DSPAM-Daemon (localhost [127.0.0.1]) by cox.rootnode.net (Postfix) with SMTP id A992E801F964 for ; Wed, 14 Sep 2011 21:20:06 +0200 (CEST) Received: from athlon.localnet (93-181-164-64.internetia.net.pl [93.181.164.64]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by cox.rootnode.net (Postfix) with ESMTPSA id 86088801F962 for ; Wed, 14 Sep 2011 21:20:06 +0200 (CEST) From: Szymon Janc To: The development of GNU GRUB Subject: [RFC] LZO support Date: Wed, 14 Sep 2011 21:20:06 +0200 User-Agent: KMail/1.13.7 (Linux/3.0.0-1-686-pae; KDE/4.6.5; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201109142120.06740.szymon@janc.net.pl> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.8 (cox.rootnode.net [0.0.0.0]); Wed, 14 Sep 2011 21:20:06 +0200 (CEST) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Sep 14 21:20:06 2011 X-DSPAM-Confidence: 0.9921 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4e70fe66289801804284693 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 89.248.165.14 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Wed, 14 Sep 2011 19:26:13 -0000 Hello, I've implemented support for LZO in grub, this includes: - import of minilzo library (from [1]) - support for LZO (de)compression in btrfs (compress=lzo mount option) - lzopio - for reading lzop compressed files Some comments: - with this code one is able to boot from btrfs partition that was mounted with compress=lzo, also did some tests with grub-fstest (crc, testload) on some various files, seems to be working fine, - lzopio works ok with grub-fstest (crc, testload), also able to load modules compressed with lzop, but compressing all modules and doing grub-install --modules=lzopio fails to boot, still need to investigate that - lzopio have room for speed optimisation i.e. decompressing directly to target buffer when possible, currently there is always memcpy from temp buffer - tested on 32bit x86 only, I'll try to do some tests on different platforms as well (on QEMU) but brave people could test it on some real hardware :) - there are also some addons which could be used by other grub code as well: * suport for adler32 checksum (for lzop) * helper functions for easier unaligned access Last but not least: code is available at [2]. Comments and testing are welcome :) [1] http://www.oberhumer.com/opensource/lzo/#minilzo [2] http://bzr.savannah.gnu.org/r/grub/people/janc/lzo/ -- Szymon K. Janc szymon@janc.net.pl // GG: 1383435