[syslinux] [PATCH 25/28] com32/chain: (partiter) add cebr_siz for completness

Michal Soltys soltys at ziu.info
Tue Jan 29 06:06:12 PST 2013


Might be useful at some and/or when partiter becomes a non-chain
specific code.

Signed-off-by: Michal Soltys <soltys at ziu.info>
---
 com32/chain/partiter.c |    1 +
 com32/chain/partiter.h |    1 +
 2 files changed, 2 insertions(+)

diff --git a/com32/chain/partiter.c b/com32/chain/partiter.c
index 8d0c272..ced3a45 100644
--- a/com32/chain/partiter.c
+++ b/com32/chain/partiter.c
@@ -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) {
diff --git a/com32/chain/partiter.h b/com32/chain/partiter.h
index ab4922c..13dec84 100644
--- a/com32/chain/partiter.h
+++ b/com32/chain/partiter.h
@@ -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 */
 
-- 
1.7.10.4



More information about the Syslinux mailing list