summaryrefslogtreecommitdiff
path: root/gpt.h
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-01-03 20:57:08 -0500
committersrs5694 <srs5694@users.sourceforge.net>2010-01-03 20:57:08 -0500
commit5d58fe0ea12c9c727c8a970c8e1ac08ea7fbe05f (patch)
tree56f8e7514b233fa9b7d0cba24115ffc616e81d66 /gpt.h
parent1d1448a82d62ad32a8d597ed9ade46b4f37d8eb5 (diff)
downloadsgdisk-5d58fe0ea12c9c727c8a970c8e1ac08ea7fbe05f.tar.gz
Version 0.5.3 changes. Minor bug fixes & detection of the number of
logical sectors per physical sector on Linux 2.6.32 and above.
Diffstat (limited to 'gpt.h')
-rw-r--r--gpt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpt.h b/gpt.h
index c0bf53c..f5f862b 100644
--- a/gpt.h
+++ b/gpt.h
@@ -61,6 +61,7 @@ protected:
uint32_t blockSize; // device block size
uint64_t diskSize; // size of device, in blocks
GPTValidity state; // is GPT valid?
+ int justLooking; // Set to 1 if program launched with "-l" or if read-only
int mainCrcOk;
int secondCrcOk;
int mainPartsCrcOk;
@@ -135,6 +136,7 @@ public:
void MakeProtectiveMBR(void) {protectiveMBR.MakeProtectiveMBR();}
int Align(uint64_t* sector);
void SetAlignment(int n) {sectorAlignment = n;}
+ void JustLooking(int i = 1) {justLooking = i;}
// Return data about the GPT structures....
int GetPartRange(uint32_t* low, uint32_t* high);