summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-05-08 11:29:50 -0400
committerTom Rini <[email protected]>2022-05-08 11:29:50 -0400
commit258a57907d158d3ba54ec4e6daf0595d2f670d65 (patch)
treed23bd81722297b0febeb84ec7db4d4b23020702b /include
parent145921bdbdcfc24f18ce21d570ff86cc7e1fa3ba (diff)
parent9ac4c2bfe9f502549362c6d394c7024236146a5b (diff)
Merge branch '2022-05-06-assorted-updates'
- Drop "linux,phandle" setting code, it's very long obsolete. - Add ability to fix broken GPT via backup GPT.
Diffstat (limited to 'include')
-rw-r--r--include/part.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h
index 3a6958dcb2a..6f604e7315a 100644
--- a/include/part.h
+++ b/include/part.h
@@ -467,6 +467,16 @@ int gpt_verify_headers(struct blk_desc *dev_desc, gpt_header *gpt_head,
gpt_entry **gpt_pte);
/**
+ * gpt_repair_headers() - Function to repair the GPT's header
+ * and partition table entries (PTE)
+ *
+ * @param dev_desc - block device descriptor
+ *
+ * Return: - '0' on success, otherwise error
+ */
+int gpt_repair_headers(struct blk_desc *dev_desc);
+
+/**
* gpt_verify_partitions() - Function to check if partitions' name, start and
* size correspond to '$partitions' env variable
*