Displaying 5 results from an estimated 5 matches for "next_gpt_part".
2010 Jul 30
4
chain.c: fix v2 for public indexes in iterators (for master and disklib)
>From the earlier patches - that simple fix for indexes not counting non-data
partitions in gpt and mbr cases. Patches don't touch any other parts of the
code at this stage - bigger stuff later for disklib as we agreed - but this is
potentially useful right now.
Michal Soltys (1):
chain.c: fix public index value in mbr and gpt iterators
2010 Jul 24
0
[PATCH] chain.c: allocation fixes
.../* Trigger an initial EBR load */
@@ -625,9 +639,7 @@ static struct disk_part_iter *next_mbr_part(struct disk_part_iter *part)
return part;
err_alloc:
-
- free(part->block);
- free(part);
+ free_iter(part);
return NULL;
}
@@ -870,9 +882,7 @@ static struct disk_part_iter *next_gpt_part(struct disk_part_iter *part)
return part;
err_last:
- free(part->block);
- free(part);
-
+ free_iter(part);
return NULL;
}
@@ -889,6 +899,7 @@ static struct disk_part_iter *get_first_partition(struct disk_part_iter *part)
error("Count not allocate partition iterat...
2010 Jul 23
0
[PATCH] chain.c: gpt's index/private.index mismatch fix, cosmetic iterator changes
...te.ebr.parent);
@@ -629,7 +624,6 @@ static struct disk_part_iter *next_mbr_part(struct disk_part_iter *part)
part->record = table + part->private.mbr_index;
return part;
- free(ebr_part);
err_alloc:
free(part->block);
@@ -869,7 +863,7 @@ static struct disk_part_iter *next_gpt_part(struct disk_part_iter *part)
part->private.gpt.part_guid = &gpt_part->uid;
part->private.gpt.part_label = gpt_part->name;
/* Update our index */
- part->index++;
+ part->index = part->private.gpt.index + 1;
gpt_part_dump(gpt_part);
/* In a G...
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
This patch introduces extra functionality to chain.c, mainly with reference to
BPB adjustments, but not only that. It expects 3 small patches I sent earlier
(they are included for easy reference, patches 1-3/4).
The changes introduced are:
1) file and boot sector use separate options to control load address and jump
address (if applicable). Options are as described below:
*
2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
1) code split and move
Iterator related functionality is yanked from chain.c and moved to
iterator.{c,h}. Both are moved to com32/chain and this way chain.c is ready
for further splitting.
Alternatively, partiter could be moved to com32/lib at any time in the future.
It's potentially useful for other modules (e.g. if someone wanted to code
partition dumper or editor).
2) Iterator updates