Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JI8eH-0002LZ-2l for mharc-grub-devel@gnu.org; Thu, 24 Jan 2008 15:26:09 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JI8eE-0002Ky-9G for grub-devel@gnu.org; Thu, 24 Jan 2008 15:26:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JI8e8-0002JS-Pj for grub-devel@gnu.org; Thu, 24 Jan 2008 15:26:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JI8e8-0002JP-MN for grub-devel@gnu.org; Thu, 24 Jan 2008 15:26:00 -0500 Received: from durga.via.ecp.fr ([138.195.130.75]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JI8e8-0006rf-Eo for grub-devel@gnu.org; Thu, 24 Jan 2008 15:26:00 -0500 Received: from localhost (durga.via.ecp.fr [127.0.0.1]) by durga.via.ecp.fr (Postfix) with ESMTP id BD3664AFE2 for ; Thu, 24 Jan 2008 21:25:57 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.4.2 (20060627) (Debian) at via.ecp.fr Received: from durga.via.ecp.fr ([127.0.0.1]) by localhost (durga.via.ecp.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XobK5RXr-pNZ for ; Thu, 24 Jan 2008 21:25:57 +0100 (CET) Received: from zen.via.ecp.fr (zen.via.ecp.fr [138.195.130.72]) by durga.via.ecp.fr (Postfix) with ESMTP id A721F4AFD5 for ; Thu, 24 Jan 2008 21:25:57 +0100 (CET) Received: by zen.via.ecp.fr (Postfix, from userid 10118) id A35A3F49D; Thu, 24 Jan 2008 21:25:57 +0100 (CET) Date: Thu, 24 Jan 2008 21:25:57 +0100 From: Antoine Cellerier To: The development of GRUB 2 Message-ID: <20080124202557.GA9428@via.ecp.fr> References: <20080123183004.GA19087@via.ecp.fr> <87myqv430w.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Incomplete file listing with reiserfs partition 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: Thu, 24 Jan 2008 20:26:07 -0000 On Fri, Jan 25, 2008, Bean wrote: > this is the patch, it can list all files. > > the main problem of the original code is that it assume that the next > offset will be current offset + 1, this is not true. the offset is a > hash value. it can be extracted when going through the B+ tree. > > * fs/reiserfs.c (grub_fshelp_node): New member next_offset. > (grub_reiserfs_get_item): Save offset of the next item. > (grub_reiserfs_iterate_dir): Use next_offset to find next item. Works like a charm. Thanks :) -- Antoine Cellerier dionoea