Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1BVGBB-0007je-85 for mharc-grub-devel@gnu.org; Tue, 01 Jun 2004 16:48:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVGB9-0007h1-59 for grub-devel@gnu.org; Tue, 01 Jun 2004 16:48:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVGB6-0007dT-NI for grub-devel@gnu.org; Tue, 01 Jun 2004 16:48:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVGB6-0007d7-G1 for grub-devel@gnu.org; Tue, 01 Jun 2004 16:48:08 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BVGAR-00031v-HN for grub-devel@gnu.org; Tue, 01 Jun 2004 16:47:27 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 5D2978EE7; Tue, 1 Jun 2004 22:44:31 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 31891-07; Tue, 1 Jun 2004 22:44:28 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 9E5538EF5; Tue, 1 Jun 2004 22:44:28 +0200 (CEST) Received: from marco.marco-g.com (a82-92-27-129.adsl.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 68250C04B; Tue, 1 Jun 2004 21:44:27 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: ebik@ucw.cz References: <20040601121704.GA4680@artax.karlin.mff.cuni.cz> <20040601201320.GA10705@artax.karlin.mff.cuni.cz> From: Marco Gerards Date: Tue, 01 Jun 2004 22:47:10 +0200 In-Reply-To: <20040601201320.GA10705@artax.karlin.mff.cuni.cz> (Tomas Ebenlendr's message of "Tue, 1 Jun 2004 22:13:20 +0200") Message-ID: <87oeo3t38x.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Cc: The development of GRUB 2 Subject: Re: ext2 find patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 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: Tue, 01 Jun 2004 20:48:11 -0000 ebik@artax.karlin.mff.cuni.cz (Tomas Ebenlendr) writes: > The same problem was with symlinks, so the new version of patch is here. > > It does stat every inode (and ignore the info in direntries). > There is also small fix in absolute symlinks (chopping the initial '/') Thanks a lot for tracking down these problems and sending in a patch. I noticed some problems with my GNU/Hurd ext2 filesystem as well, similar to these. At first I thought it was because of something related to the Hurd, now I assume it is the same problem. What I want to do is having a look if/how I can separate the code to test if it is a directory/symlink, traverse the tree, follow symlinks, etc. Now I just duplicated some code for the 3 filesystems I implemented. I will change the code to use one generic set of helper functions, or perhaps changing the interfaces. I really hate duplicated code, it can trigger bugs (as you see here) and it increases binary size and it makes maintaining harder. Tackling this problem is very important to me. Unfortunately I do not have the time to do this now. I am busy with school and some other stuff. In some weeks I will have a look at these more generic problems and the ext2 specific problems. So, basically, your patch will not be ignored, it will just take quite a while before I can properly deal with it in the way I want to. :) Thanks, Marco