grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incomplete file listing with reiserfs partition


From: Antoine Cellerier
Subject: Re: Incomplete file listing with reiserfs partition
Date: Thu, 24 Jan 2008 21:25:57 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]