From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKz9L-0004CU-Fo for mharc-grub-devel@gnu.org; Fri, 01 Feb 2008 11:53:59 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKz9J-00049p-SY for grub-devel@gnu.org; Fri, 01 Feb 2008 11:53:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKz9I-000475-5d for grub-devel@gnu.org; Fri, 01 Feb 2008 11:53:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKz9H-00046a-S1 for grub-devel@gnu.org; Fri, 01 Feb 2008 11:53:56 -0500 Received: from smtp-vbr8.xs4all.nl ([194.109.24.28]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKz9H-0004t8-AI for grub-devel@gnu.org; Fri, 01 Feb 2008 11:53:55 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id m11Grrog005469 for ; Fri, 1 Feb 2008 17:53:54 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <87prvhg44e.fsf@xs4all.nl> <87lk65fcxf.fsf@xs4all.nl> Mail-Copies-To: mgerards@xs4all.nl Date: Fri, 01 Feb 2008 17:55:34 +0100 In-Reply-To: (bean123ch@gmail.com's message of "Fri, 1 Feb 2008 21:09:50 +0800") Message-ID: <87r6fwehvd.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] btree support in xfs driver 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: Fri, 01 Feb 2008 16:53:58 -0000 Bean writes: Hi! > change in this new patch: > > Fix small bug in xfs > Fix a bug in fshelp > Define NESTED_FUNC_ATTR as regparm(1) and us it for call_hook. > > With this patch, i'm able to load a highly sparse file about 200M. > > > 2008-02-01 Bean > > * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk. > (grub_xfs_btree_node): New structure. > (grub_xfs_btree_root): New structure. > (grub_xfs_inode): New members nblocks, extsize, nextents and btree. > (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents. > (GRUB_XFS_EXTENT_BLOCK): Likewise. > (GRUB_XFS_EXTENT_SIZE): Likewise. > (grub_xfs_read_block): Support btree format type. > (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook. > Use directory block as basic unit. > > * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block. > > * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as > __attribute__ ((__regparm__ (1))). Looks fine to me! :-) -- Marco