Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1E7Gh8-00086Z-3S for mharc-grub-devel@gnu.org; Mon, 22 Aug 2005 14:06:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E7Gby-0006Wu-Tv for grub-devel@gnu.org; Mon, 22 Aug 2005 14:01:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E7Gbm-0006Rd-H0 for grub-devel@gnu.org; Mon, 22 Aug 2005 14:01:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7Gbh-0006KT-JD for grub-devel@gnu.org; Mon, 22 Aug 2005 14:01:13 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E7GLS-0001Zh-33 for grub-devel@gnu.org; Mon, 22 Aug 2005 13:44:26 -0400 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 07FC611F0875A for ; Mon, 22 Aug 2005 19:43:45 +0200 (CEST) Received: from 127.0.0.1 ([127.0.0.1] helo=ip6-localhost) by ASSP-nospam ; 22 Aug 05 17:43:44 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Mon, 22 Aug 2005 19:42:43 +0200 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508221942.43942.okuji@enbug.org> Subject: gzio X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2005 18:06:48 -0000 I've added a new module gzio right now. It supports decompression of gzipped data. It is much more flexible than the automatic decompression in GRUB Legacy, because you can use any kind of file object as an underlying data stream. gzio itself makes a file-like object by emulating a filesystem. I bet that this is a victory in the design of GRUB 2. Unlike GRUB Legacy, gzio is not automatic. When you want to use that feature, you must use grub_gzfile_open or grub_gzio_open to make a file object. This is intentional, and I wouldn't change this. Once you make a file object, it behaves exactly in the same way as an usual file object. In fact, you cannot distinguish them unless you look at the internal structure. For now, only 3 modules (multiboot, cat and cmp) use gzio. Please use it whenever appropriate. I tested it only on PC. I'd like to know if it works with big-endian and 64-bit systems. If you can, please test it and let me know the result. Okuji