summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-06-02 09:15:32 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-09 14:34:11 +0200
commit2a4c3b384ca35a83eb7e973fccea5bd20f8b2567 (patch)
treeea2498c19082acd0888343d17f2449757e8ac33b /common
parent7c0245d18dc8718a3918af4b5a2dffdbcbf1f7fd (diff)
downloadbarebox-2a4c3b384ca35a83eb7e973fccea5bd20f8b2567.tar.gz
barebox-2a4c3b384ca35a83eb7e973fccea5bd20f8b2567.tar.xz
partitions: Increase MAX_PARTITION to 128
Having MAX_PARTITION defined to 8 is enough for a DOS partition table, but not for GPT. Increase it to the maximum GPT supports. It might be even better to allocate the partitions dynamically, but for nor take the easy way out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviwed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210602071533.10093-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/partitions/parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/partitions/parser.h b/common/partitions/parser.h
index 8ad134a9aa..69508932b3 100644
--- a/common/partitions/parser.h
+++ b/common/partitions/parser.h
@@ -11,7 +11,7 @@
#include <filetype.h>
#include <linux/list.h>
-#define MAX_PARTITION 8
+#define MAX_PARTITION 128
#define MAX_PARTITION_NAME 38
struct partition {