From: Todd Poynor Date: Fri, 27 Aug 2010 00:25:50 +0000 (-0700) Subject: EFI/GPT: Register named partitions. X-Git-Tag: firefly_0821_release~9833^2~5^2~131 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=315d5003ed06f785932d019c2a69a9ad65e28968;p=firefly-linux-kernel-4.4.55.git EFI/GPT: Register named partitions. Change-Id: If318512de67d3d152192aa66b074427f4e5b5c2e Signed-off-by: Todd Poynor --- 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,