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


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to