grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add DragonFly BSD disklabel64 support


From: Radosław Szymczyszyn
Subject: Re: [PATCH] Add DragonFly BSD disklabel64 support
Date: Mon, 1 Apr 2013 13:43:15 +0200

2013/4/1 Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden>
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).

reply via email to

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