|
From: | Radosław Szymczyszyn |
Subject: | Re: [PATCH] Add DragonFly BSD disklabel64 support |
Date: | Mon, 1 Apr 2013 14:25:35 +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).
part-dfly.2.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |