aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2012-11-08 01:12:55 +0100
committerMichal Soltys <soltys@ziu.info>2012-11-08 01:12:55 +0100
commit4e527b8e881d7181c318b9b7c7d3fa9dede3b260 (patch)
tree18a4000d601c6e7e04236682e9fd55ff30663122
parentcd5edb3fa82549dbb05ecfd8068ad948a6f12534 (diff)
downloadsyslinux-chain_update.tar.gz
syslinux-chain_update.tar.xz
syslinux-chain_update.zip
com32/chain: (partiter) add cebr_siz for completnesschain_update
Might be useful at some and/or when partiter becomes a non-chain specific code.
-rw-r--r--com32/chain/partiter.c1
-rw-r--r--com32/chain/partiter.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/com32/chain/partiter.c b/com32/chain/partiter.c
index 93c7420d..bd61bdfc 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 e223333e..78cd0d99 100644
--- a/com32/chain/partiter.h
+++ b/com32/chain/partiter.h
@@ -82,6 +82,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 */