mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
GPT: read partition table from device into a data structure
Make the partition table available for modification by reading it from the user-specified device into a linked list. Provide an accessor function for command-line testing. Signed-off-by: Alison Chaiken <alison@peloton-tech.com> [trini: Make this depend on CMD_GPT_RENAME, as it is the user of this code] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
73d6d18b71
commit
09a49930e4
2 changed files with 132 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <blk.h>
|
||||
#include <ide.h>
|
||||
#include <uuid.h>
|
||||
#include <linux/list.h>
|
||||
|
||||
struct block_drvr {
|
||||
char *name;
|
||||
|
@ -69,6 +70,12 @@ typedef struct disk_partition {
|
|||
#endif
|
||||
} disk_partition_t;
|
||||
|
||||
struct disk_part {
|
||||
int partnum;
|
||||
disk_partition_t gpt_part_info;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
/* Misc _get_dev functions */
|
||||
#ifdef CONFIG_PARTITIONS
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue