diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2009-12-31 21:20:19 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2009-12-31 21:20:19 -0500 |
commit | 1d1448a82d62ad32a8d597ed9ade46b4f37d8eb5 (patch) | |
tree | 3df9db73abb2e37f66c01e981babaaef0267bbf0 /gpt.h | |
parent | 247657a5acbb7eb21c336ba84a68b801b7c19be0 (diff) | |
download | gptfdisk-1d1448a82d62ad32a8d597ed9ade46b4f37d8eb5.tar.gz |
Update to version 0.5.2; adds support for Advanced Format disk partition
alignment
Diffstat (limited to 'gpt.h')
-rw-r--r-- | gpt.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -67,6 +67,7 @@ protected: int secondPartsCrcOk; int apmFound; // set to 1 if APM detected int bsdFound; // set to 1 if BSD disklabel detected in MBR + int sectorAlignment; // Start & end partitions at multiples of sectorAlignment PartTypes typeHelper; public: // Basic necessary functions.... @@ -132,6 +133,8 @@ public: void SetDiskGUID(GUIDData newGUID); int SetPartitionGUID(uint32_t pn, GUIDData theGUID); void MakeProtectiveMBR(void) {protectiveMBR.MakeProtectiveMBR();} + int Align(uint64_t* sector); + void SetAlignment(int n) {sectorAlignment = n;} // Return data about the GPT structures.... int GetPartRange(uint32_t* low, uint32_t* high); @@ -143,7 +146,7 @@ public: uint64_t GetBlocksInPartTable(void) {return (mainHeader.numParts * mainHeader.sizeOfPartitionEntries) / blockSize;} uint32_t CountParts(void); - + int GetAlignment(void) {return sectorAlignment;} // Find information about free space uint64_t FindFirstAvailable(uint64_t start = 0); |