]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/lib/bdev/gpt/gpt.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / lib / bdev / gpt / gpt.h
index 923bdc1c016c1cd990c212424dccbb23aec66c61..dc2d0c1f2552bf9024cc47555ddf9ba9afa2cdd6 100644 (file)
 #define SPDK_GPT_BUFFER_SIZE 32768  /* 32KB */
 #define        SPDK_GPT_GUID_EQUAL(x,y) (memcmp(x, y, sizeof(struct spdk_gpt_guid)) == 0)
 
+enum spdk_gpt_parse_phase {
+       SPDK_GPT_PARSE_PHASE_INVALID = 0,
+       SPDK_GPT_PARSE_PHASE_PRIMARY,
+       SPDK_GPT_PARSE_PHASE_SECONDARY,
+};
+
 struct spdk_gpt {
+       uint8_t parse_phase;
        unsigned char *buf;
        uint64_t buf_size;
        uint64_t lba_start;
@@ -57,6 +64,7 @@ struct spdk_gpt {
        struct spdk_gpt_partition_entry *partitions;
 };
 
-int spdk_gpt_parse(struct spdk_gpt *gpt);
+int spdk_gpt_parse_mbr(struct spdk_gpt *gpt);
+int spdk_gpt_parse_partition_table(struct spdk_gpt *gpt);
 
 #endif  /* SPDK_INTERNAL_GPT_H */