summaryrefslogtreecommitdiff
path: root/firmware/lib/cgptlib/include/mtdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/lib/cgptlib/include/mtdlib.h')
-rw-r--r--firmware/lib/cgptlib/include/mtdlib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/lib/cgptlib/include/mtdlib.h b/firmware/lib/cgptlib/include/mtdlib.h
index 0c87822a..fd749aca 100644
--- a/firmware/lib/cgptlib/include/mtdlib.h
+++ b/firmware/lib/cgptlib/include/mtdlib.h
@@ -66,6 +66,11 @@ typedef struct {
uint64_t starting_offset;
uint64_t ending_offset;
uint32_t flags;
+
+ /* 28 characters is a balance between GPT parity and size constraints, at
+ * current sizes this table occupies 10% of the FTS data store.
+ */
+ char label[28];
} __attribute__((packed)) MtdDiskPartition;
typedef struct {
@@ -81,9 +86,9 @@ typedef struct {
MtdDiskPartition partitions[MTD_MAX_PARTITIONS];
} __attribute__((packed)) MtdDiskLayout;
-#define MTD_DRIVE_V1_SIZE (32 + 16*20)
+#define MTD_DRIVE_V1_SIZE (32 + 16*48)
-#define MTDENTRY_EXPECTED_SIZE (20)
+#define MTDENTRY_EXPECTED_SIZE (48)
#define MTDLAYOUT_EXPECTED_SIZE (32 + 16 * MTDENTRY_EXPECTED_SIZE)