Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JI9de-0001BY-5W for mharc-grub-devel@gnu.org; Thu, 24 Jan 2008 16:29:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JI9db-00019e-Mp for grub-devel@gnu.org; Thu, 24 Jan 2008 16:29:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JI9db-000192-1Y for grub-devel@gnu.org; Thu, 24 Jan 2008 16:29:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JI9da-00018o-Sz for grub-devel@gnu.org; Thu, 24 Jan 2008 16:29:30 -0500 Received: from ns39764.ovh.net ([91.121.25.85] helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JI9da-0005vO-EG for grub-devel@gnu.org; Thu, 24 Jan 2008 16:29:30 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 9C64A3EB23 for ; Thu, 24 Jan 2008 22:35:38 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Thu, 24 Jan 2008 22:29:19 +0100 User-Agent: KMail/1.9.4 References: <20080123183004.GA19087@via.ecp.fr> <87myqv430w.fsf@xs4all.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801242229.19560.okuji@enbug.org> 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 21:29:32 -0000 On Thursday 24 January 2008 20:57, 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. Great. Please feel free to check it in. Okuji