2023-06-19 21:54:40 -07:00
|
|
|
#pragma once
|
|
|
|
|
2023-10-25 20:28:28 -07:00
|
|
|
#include <denali/denali.yunq.client.h>
|
|
|
|
#include <glacier/memory/unique_ptr.h>
|
|
|
|
#include <glacier/status/error.h>
|
2023-06-19 21:54:40 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <ztypes.h>
|
|
|
|
|
2023-06-19 22:58:00 -07:00
|
|
|
class GptReader {
|
|
|
|
public:
|
2023-06-26 11:54:36 -07:00
|
|
|
GptReader(glcr::UniquePtr<DenaliClient> denali);
|
2023-06-19 21:54:40 -07:00
|
|
|
|
2023-06-21 21:26:24 -07:00
|
|
|
glcr::ErrorCode ParsePartitionTables();
|
2023-06-19 21:54:40 -07:00
|
|
|
|
2023-07-05 16:03:20 -07:00
|
|
|
uint64_t GetPrimaryPartitionLba() { return primary_partition_lba_; }
|
|
|
|
|
2023-06-19 22:58:00 -07:00
|
|
|
private:
|
2023-06-26 11:54:36 -07:00
|
|
|
glcr::UniquePtr<DenaliClient> denali_;
|
2023-07-05 16:03:20 -07:00
|
|
|
uint64_t primary_partition_lba_;
|
2023-06-19 22:58:00 -07:00
|
|
|
};
|