Displaying 6 results from an estimated 6 matches for "gpt_part_head".
Did you mean:
gpt_part_header
2011 Aug 05
3
isolinux: Generate GPT and Mac bootable images
...nt64_t currentLBA;
+ uint64_t backupLBA;
+ uint64_t firstUsableLBA;
+ uint64_t lastUsableLBA;
+ uuid_t diskGUID;
+ uint64_t partitionEntriesLBA;
+ uint32_t numParts;
+ uint32_t sizeOfPartitionEntries;
+ uint32_t partitionEntriesCRC;
+ uint8_t reserved2[420];
+};
+
+struct gpt_part_header {
+ uuid_t partTypeGUID;
+ uuid_t partGUID;
+ uint64_t firstLBA;
+ uint64_t lastLBA;
+ uint64_t attributes;
+ uint16_t name[36];
+};
+
+#define APM_OFFSET 2048
+
+struct apple_part_header {
+ uint16_t signature; /* expected to be MAC_PARTITION_MAGIC */
+ uint16...
2014 Jun 22
0
[PATCH 1/6] utils/isohybrid.c: Encode GPT partition names as UTF-16LE
...++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index 05afd29..c5b4281 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -749,6 +749,11 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
struct gpt_part_header *part;
int hole = 0;
int gptsize = 128 / 4 + 2;
+ char part_name_iso[] = {'I', 0, 'S', 0, 'O', 0, 'H', 0, 'y', 0,
+ 'b', 0, 'r', 0, 'i', 0, 'd', 0, ' ', 0,
+...
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...+ } while (c);
> +
> + return (uint16_t *)p;
> +}
> +
> void
> initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
> {
> @@ -793,11 +808,6 @@ initialise_gpt(uint8_t *gpt, uint32_t current, uint32_t alternate, int primary)
> struct gpt_part_header *part;
> int hole = 0;
> int gptsize = 128 / 4 + 2;
> - char part_name_iso[] = {'I', 0, 'S', 0, 'O', 0, 'H', 0, 'y', 0,
> - 'b', 0, 'r', 0, 'i', 0, 'd', 0, ' ', 0,
&...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi,
following will be 6 patch proposals for isohybrid.c
1: Encode GPT partition names as UTF-16LE
2: Correct blocking factor in APM partition block counts
3: Correct end block address of first GPT partition
4: Write GPT backup to the very end of the image
5: Change all fseek(3) to fseeko(3)
6: Introduce option --mbr and make isohybrid.c compilable standalone
If the form needs adjustments,
2014 Jun 22
0
[PATCH 3/6] utils/isohybrid.c: Correct end block address of first GPT partition
...so_uuid, sizeof(uuid_t));
memcpy(part->partTypeGUID, basic_partition, sizeof(uuid_t));
part->firstLBA = lendian_64(0);
- part->lastLBA = lendian_64(psize);
+ part->lastLBA = lendian_64(psize - 1);
memcpy(part->name, part_name_iso, 28);
gpt += sizeof(struct gpt_part_header);
--
1.8.4.2
2014 Jun 22
0
[PATCH 4/6] utils/isohybrid.c: Write GPT backup to the very end of the image
...har *argv[])
buf += orig_gpt_size - sizeof(struct gpt_header);
- initialise_gpt(buf, (isostat.st_size + padding - 1024) / 512, 1, 0);
+ initialise_gpt(buf, (isostat.st_size + padding - 512) / 512, 1, 0);
/* Shift back far enough to write the 128 GPT entries */
buf -= 128 * sizeof(struct gpt_part_header);
@@ -1132,7 +1132,7 @@ main(int argc, char *argv[])
* end of the image
*/
- if (fseeko(fp, (isostat.st_size + padding) - orig_gpt_size - 512,
+ if (fseeko(fp, (isostat.st_size + padding) - orig_gpt_size,
SEEK_SET))
err(1, "%s: seek error - 8", argv[0]);
--
1.8.4.2