Updated to version 0.4.1
Adds relative partition sizing and placement options for both start and
end sectors; improves hybrid MBR synchronization (deletes matching MBR
partition when a GPT partition is deleted, warns about inconsistencies
when verifying or writing a partition table).
diff --git a/support.h b/support.h
index d812d3c..60fcb8c 100644
--- a/support.h
+++ b/support.h
@@ -53,7 +53,7 @@
int GetNumber(int low, int high, int def, const char prompt[]);
char GetYN(void);
-uint64_t GetLastSector(uint64_t low, uint64_t high, char prompt[]);
+uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, char prompt[]);
char* BytesToSI(uint64_t size, char theValue[]);
int GetBlockSize(int fd);
char* GUIDToStr(struct GUIDData theGUID, char* theString);
@@ -61,6 +61,7 @@
int IsLittleEndian(void); // Returns 1 if CPU is little-endian, 0 if it's big-endian
void ReverseBytes(void* theValue, int numBytes); // Reverses byte-order of theValue
uint64_t PowerOf2(int value);
+int OpenForWrite(char* deviceFilename);
uint64_t disksize(int fd, int* err);