Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKmcw-000512-Lj for mharc-grub-devel@gnu.org; Thu, 31 Jan 2008 22:31:42 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKmcv-00050x-9J for grub-devel@gnu.org; Thu, 31 Jan 2008 22:31:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKmct-00050T-V7 for grub-devel@gnu.org; Thu, 31 Jan 2008 22:31:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKmct-00050L-Nw for grub-devel@gnu.org; Thu, 31 Jan 2008 22:31:39 -0500 Received: from py-out-1112.google.com ([64.233.166.180]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKmct-0007E2-Lk for grub-devel@gnu.org; Thu, 31 Jan 2008 22:31:39 -0500 Received: by py-out-1112.google.com with SMTP id u52so1027915pyb.1 for ; Thu, 31 Jan 2008 19:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=iRoQuAoECEdtT09NY2S/M42UqiUQDjAEakB8qE5A2mQ=; b=jgT3+kyCMt7Tk6rlbeUel8YYKBujmyaIcTs4evHFPQgK/KPCIuTjocbsvTRy7iROZvWO/37fMSZg3GqHKiF9y/mJ1eM83hVnW+vXYqsSxZnLQWKcBkDMcsK8aWfSkXHTz28kqTZTcT/9k3TycMTjk9SCF0BRoesjvkCSKagyHF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OHcVrAcIpNjek2dXLCoCSIcQfXMqJpj/GJHdCdwiSf+ICsjAmQhBECrEXWtJ8Wj713+SkETcBHoc64SHlct5EGu8Sn0SYpcr4nD6nArIxqFuoJMaPzqKTGTq31TaAMCAFdpoLBi++RhsJaBVd2eRAiAf3hCRtpuE7dBo32HpoaQ= Received: by 10.110.31.5 with SMTP id e5mr1777664tie.37.1201836697058; Thu, 31 Jan 2008 19:31:37 -0800 (PST) Received: by 10.110.31.8 with HTTP; Thu, 31 Jan 2008 19:31:36 -0800 (PST) Message-ID: Date: Fri, 1 Feb 2008 11:31:36 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <87prvhg44e.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <87prvhg44e.fsf@xs4all.nl> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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 03:31:41 -0000 On Feb 1, 2008 3:57 AM, Marco Gerards wrote: > Bean writes: > > Hi Bean! > > > I add btree support for the xfs driver, and fix a few bugs. Now i' m > > able to list a directory of over 5000 files, please test it. > > You rock! > > Can you load big files now, that are stored in BTrees. Did you use > code from elsewhere? it should be, grub_xfs_read_block is used by both file and directory. > > > 2008-02-01 Bean > > > > * fs/xfs.h (grub_xfs_sblock): New member log2_dirblk. > > (grub_xfs_btree_node): New structure. > > (grub_xfs_btree_root): New structure. > > (grub_xfs_inode): New member nblocks, extsize, nextents and btree. > > members > > > (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 regparm(1) attribute in call_hook. > > Use directory block as basic unit. > > This won't work on non-i386. So I think this has to be fixed like > that other bug, for example with the autoconf check extension you > proposed. i take a look at the aclocal.m4, the place where NESTED_FUNC_ATTR is defined: AC_MSG_RESULT([$grub_cv_i386_check_nested_functions]) if test "x$grub_cv_i386_check_nested_functions" = xyes; then AC_DEFINE([NESTED_FUNC_ATTR], [__attribute__ ((__regparm__ (2)))], [Catch gcc bug]) else dnl Unfortunately, the above test does not detect a bug in gcc-4.0. dnl So use regparm 2 until a better test is found. AC_DEFINE([NESTED_FUNC_ATTR], [__attribute__ ((__regparm__ (2)))], [Catch gcc bug]) fi is there a problem here ? i think NESTED_FUNC_ATTR is defined regardless of the test result. -- Bean