com32/chain: (partiter) add cebr_siz for completness
authorMichal Soltys <soltys@ziu.info>
Thu, 14 Feb 2013 15:51:46 +0000 (16:51 +0100)
committerMichal Soltys <soltys@ziu.info>
Thu, 14 Feb 2013 15:53:52 +0000 (16:53 +0100)
Might be useful at some and/or when partiter becomes a non-chain
specific code.

Signed-off-by: Michal Soltys <soltys@ziu.info>
com32/chain/partiter.c
com32/chain/partiter.h

index 8d0c272..ced3a45 100644 (file)
@@ -360,6 +360,7 @@ static int dos_next_ebr(struct part_iter *iter, uint32_t *lba,
        dp = ((struct disk_dos_mbr *)iter->data)->table;
 
        iter->dos.cebr_lba = iter->dos.nebr_lba;
+       iter->dos.cebr_siz = iter->dos.nebr_siz;
 
        /* setup next frame values */
        if (dp[1].ostype) {
index ab4922c..13dec84 100644 (file)
@@ -77,6 +77,7 @@ struct part_iter {
            uint32_t bebr_siz;    /* size of base extended partition */
 
            uint32_t cebr_lba;    /* absolute lba of curr ext. partition */
+           uint32_t cebr_siz;    /* size of curr ext. partition */
            uint32_t nebr_lba;    /* absolute lba of next ext. partition */
            uint32_t nebr_siz;    /* size of next ext. partition */