From 86b3577a725a34160ec5ea60555abb7e4b330ad7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 16 Feb 2013 14:47:08 +0100 Subject: disk: introduce partition name so we can register partion with name as present in EFI GPT Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- common/partitions/dos.c | 2 +- common/partitions/parser.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'common/partitions') diff --git a/common/partitions/dos.c b/common/partitions/dos.c index 4f147f72da..597f9ba581 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 13506c00a0..f5bdbd1442 100644 --- a/common/partitions/parser.h +++ b/common/partitions/parser.h @@ -12,8 +12,10 @@ #include #define MAX_PARTITION 8 +#define MAX_PARTITION_NAME 38 struct partition { + char name[MAX_PARTITION_NAME]; uint64_t first_sec; uint64_t size; }; -- cgit v1.2.3