grub-devel
[Top][All Lists]
Advanced

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

Re: grub2 claims grub.cfg is out of partition


From: Samuel Thibault
Subject: Re: grub2 claims grub.cfg is out of partition
Date: Thu, 21 Jul 2011 00:28:08 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

tags 634799 + upstream patch
thanks

Hello,

Digging a bit with the issue, it seems grub2 does not ignore entries
with inode == 0 while it should. See linux' ext2_readdir() in
fs/ext2/dir.c doing it:

                for ( ;(char*)de <= limit; de = ext2_next_entry(de)) {
                        if (de->inode) {
                          ...
                        }
                }

The attached patch fixes it. Shall I commit it to upstream grub2?

Samuel

Attachment: patch
Description: Text document


reply via email to

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