2013/4/1 Radosław Szymczyszyn <lav...@gmail.com>

> 2013/4/1 Vladimir 'φ-coder/phcoder' Serbinenko <phco...@gmail.com>
>
>> On 26.03.2013 15:44, Radosław Szymczyszyn wrote:
>>
>> > +      if (! (dpart.boffset && dpart.bsize))
>> > +     continue;
>>
>> Why do you exclude partitions starting at 0?
>>
>
> Sorry, my mistake. The contract says that "an uninitialized partition has
> a boffset and bsize of 0." So the correct condition would be (!
> (dpart.boffset || dpart.bsize)), but given that a zero-sized partition is
> of little use it's best to just use (dpart.bsize == 0).
>

Here's the patch with the condition adjusted.

Attachment: part-dfly.2.patch
Description: Binary data

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

Reply via email to