summaryrefslogtreecommitdiffstats
path: root/common/partitions
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-02-16 14:47:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-16 23:39:08 +0100
commit86b3577a725a34160ec5ea60555abb7e4b330ad7 (patch)
tree52d478dca9fe1b843cba13efa1f49d09ce263adb /common/partitions
parent263bb23ed2e21ed411b87c32b6c27db0f35a33a1 (diff)
downloadbarebox-86b3577a725a34160ec5ea60555abb7e4b330ad7.tar.gz
disk: introduce partition name
so we can register partion with name as present in EFI GPT Cc: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions')
-rw-r--r--common/partitions/dos.c2
-rw-r--r--common/partitions/parser.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/common/partitions/dos.c b/common/partitions/dos.c
index 4f147f7..597f9ba 100644
--- a/common/partitions/dos.c
+++ b/common/partitions/dos.c
@@ -76,7 +76,7 @@ static void dos_partition(void *buf, struct block_device *blk,
}
}
-struct partition_parser dos = {
+static struct partition_parser dos = {
.parse = dos_partition,
.type = filetype_mbr,
};
diff --git a/common/partitions/parser.h b/common/partitions/parser.h
index 13506c0..f5bdbd1 100644
--- a/common/partitions/parser.h
+++ b/common/partitions/parser.h
@@ -12,8 +12,10 @@
#include <linux/list.h>
#define MAX_PARTITION 8
+#define MAX_PARTITION_NAME 38
struct partition {
+ char name[MAX_PARTITION_NAME];
uint64_t first_sec;
uint64_t size;
};