[syslinux] [PATCH 08/23] com32/chain: partiter - more precise comments / output

Michal Soltys soltys at ziu.info
Thu Nov 8 01:15:09 PST 2012


On 08.11.2012 03:31, Shao Miller wrote:
> On 11/5/2012 19:32, Michal Soltys wrote:
>> + int bebr_index0; /* index of (0-3) of base ext. part., -1 of not
>> present in MBR */
>
> "-1 if not present..."
> ^- ?
>
> - Shao Miller
>

The initial value of this filed is (before these patches as well) set to 
-1, until the actual extended partition is found. This field is used in 
dos_next_mbr() and one-shot setup prep_base_ebr(). The choice of -1 and 
 >=0 values was iirc to match index0 behavior.

Can be adjusted to 0 and 1 - 4 if it looks more natural (with rename to 
bebr_index).





More information about the Syslinux mailing list