summaryrefslogtreecommitdiff
path: root/fs/partitions
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2010-08-26 17:25:50 -0700
committerColin Cross <ccross@android.com>2010-09-29 17:49:47 -0700
commit315d5003ed06f785932d019c2a69a9ad65e28968 (patch)
tree19b37654b52db8e9137bd06999874cffa026043d /fs/partitions
parent4cc08cf96b436a6e38a0b0259241d9636a957dc5 (diff)
EFI/GPT: Register named partitions.
Change-Id: If318512de67d3d152192aa66b074427f4e5b5c2e Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'fs/partitions')
-rw-r--r--fs/partitions/efi.c6
1 files changed, 5 insertions, 1 deletions
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,