summaryrefslogtreecommitdiff
path: root/include/part.h
diff options
context:
space:
mode:
authorAlison Chaiken <alison@peloton-tech.com>2017-07-04 11:18:50 -0700
committerTom Rini <trini@konsulko.com>2017-08-04 20:34:04 -0400
commit09a49930e4154974dd918ed42d129d50c110c45a (patch)
tree946d405a2ced9e90870f505e4a870ffcf5a76c5b /include/part.h
parent73d6d18b7147c90d6f8a60acb8dad663a225e63d (diff)
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>
Diffstat (limited to 'include/part.h')
-rw-r--r--include/part.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h
index c41aa6adc2..0cd803a933 100644
--- a/include/part.h
+++ b/include/part.h
@@ -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
/**