OSDN Git Service

EFI/GPT: Register named partitions.
authorTodd Poynor <toddpoynor@google.com>
Fri, 27 Aug 2010 00:25:50 +0000 (17:25 -0700)
committerColin Cross <ccross@android.com>
Fri, 3 Sep 2010 20:42:12 +0000 (13:42 -0700)
Change-Id: If318512de67d3d152192aa66b074427f4e5b5c2e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
fs/partitions/efi.c

index 9efb2cf..6e7030b 100644 (file)
@@ -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,