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

Shao Miller sha0.miller at gmail.com
Wed Nov 7 18:31:00 PST 2012


On 11/5/2012 19:32, Michal Soltys wrote:
> Signed-off-by: Michal Soltys <soltys at ziu.info>
> ---
>   com32/chain/partiter.c |   19 ++++++++++---------
>   com32/chain/partiter.h |   23 +++++++++++++----------
>   2 files changed, 23 insertions(+), 19 deletions(-)
>
> diff --git a/com32/chain/partiter.c b/com32/chain/partiter.c
> index 3ecaecf..250cb2c 100644
> --- a/com32/chain/partiter.c
> +++ b/com32/chain/partiter.c
> diff --git a/com32/chain/partiter.h b/com32/chain/partiter.h
> index e9b158b..4acf1d2 100644
> --- a/com32/chain/partiter.h
> +++ b/com32/chain/partiter.h
> @@ -74,16 +74,19 @@ struct part_iter {
>       struct disk_info di;
>       union {
>   	struct {
> -	    uint32_t disk_sig;
> -	    uint32_t nebr_lba;
> -	    uint32_t cebr_lba;
> -	    /* internal */
> -	    uint32_t ebr_start;
> -	    uint32_t ebr_size;
> -	    uint32_t bebr_start;
> -	    uint32_t bebr_size;
> -	    int bebr_index0;
> -	    int skipcnt;
> +	    uint32_t disk_sig;    /* 32bit disk signature as stored in MBR */
> +
> +	    uint32_t bebr_start;  /* abs lba of base extended partition */
> +	    uint32_t bebr_size;   /* size of base extended partition */
> +
> +	    uint32_t cebr_lba;    /* absolute lba of curr ext. partition */
> +	    uint32_t nebr_lba;    /* absolute lba of next ext. partition */
> +
> +	    uint32_t ebr_start;   /* relative (to bebr) lba of next extended partition */
> +	    uint32_t ebr_size;    /* size of next extended partition */
> +
> +	    int bebr_index0;      /* index of (0-3) of base ext. part., -1 of not present in MBR */

   "-1 if not present..."
       ^- ?

- Shao Miller



More information about the Syslinux mailing list