Added hybrid MBR and destroy-GPT options

This commit is contained in:
srs5694
2009-08-20 21:35:25 -04:00
parent 7f244babbe
commit c0ca8f877e
7 changed files with 257 additions and 34 deletions

5
gpt.h
View File

@@ -126,11 +126,12 @@ public:
void RebuildSecondHeader(void);
void LoadSecondTableAsMain(void);
uint64_t FindFreeBlocks(int *numSegments, uint64_t *largestSegment);
// void MakeHybrid(void);
void MakeProtectiveMBR(void) {return protectiveMBR.MakeProtectiveMBR();}
void MakeHybrid(void);
void MakeProtectiveMBR(void);
int SaveGPTData(void);
int SaveGPTBackup(char* filename);
int LoadGPTBackup(char* filename);
int DestroyGPT(void); // Returns 1 if user proceeds
// Return data about the GPT structures....
uint32_t GetNumParts(void) {return mainHeader.numParts;}