Linux Kernel
3.7.1
|
#include <linux/crc32.h>
#include <linux/ctype.h>
#include <linux/math64.h>
#include <linux/slab.h>
#include "check.h"
#include "efi.h"
Go to the source code of this file.
Functions | |
__setup ("gpt", force_gpt_fn) | |
int | efi_partition (struct parsed_partitions *state) |
__setup | ( | "gpt" | , |
force_gpt_fn | |||
) |
int efi_partition | ( | struct parsed_partitions * | state | ) |
efi_partition(struct parsed_partitions *state)
Description: called from check.c, if the disk contains GPT partitions, sets up partition entries in the kernel.
If the first block on the disk is a legacy MBR, it will get handled by msdos_partition(). If it's a Protective MBR, we'll handle it here.
We do not create a Linux partition for GPT, but only for the actual data partitions. Returns: -1 if unable to read the partition table 0 if this isn't our partition table 1 if successful