From 315d5003ed06f785932d019c2a69a9ad65e28968 Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Thu, 26 Aug 2010 17:25:50 -0700 Subject: [PATCH] EFI/GPT: Register named partitions. Change-Id: If318512de67d3d152192aa66b074427f4e5b5c2e Signed-off-by: Todd Poynor --- fs/partitions/efi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/partitions/efi.c b/fs/partitions/efi.c index dbb44d4bb8a7..486b4444e6a4 100644 --- a/fs/partitions/efi.c +++ b/fs/partitions/efi.c @@ -621,7 +621,11 @@ int efi_partition(struct parsed_partitions *state) if (!is_pte_valid(&ptes[i], last_lba(state->bdev))) continue; - put_partition(state, i+1, start * ssz, size * ssz); + put_named_partition(state, i+1, start * ssz, size * ssz, + (const char *) ptes[i].partition_name, + strnlen((const char *) + ptes[i].partition_name, + sizeof(ptes[i].partition_name))); /* If this is a RAID volume, tell md */ if (!efi_guidcmp(ptes[i].partition_type_guid, -- 2.34.1