summaryrefslogtreecommitdiff
path: root/gpt.h
diff options
context:
space:
mode:
authorRod Smith <rodsmith@rodsbooks.com>2017-07-25 21:33:18 -0400
committerRod Smith <rodsmith@rodsbooks.com>2017-07-25 21:33:18 -0400
commitfc0e014beaa6935576e93cf440f8b3d960b2d3f7 (patch)
treec56a222096e64eac963c84b64d4c7bdc47c869ca /gpt.h
parent2a6daafeda4876dc694b97a41f5b0d0626a6fa16 (diff)
downloadsgdisk-fc0e014beaa6935576e93cf440f8b3d960b2d3f7.tar.gz
Added code to read physical block size on Linux.
Diffstat (limited to 'gpt.h')
-rw-r--r--gpt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gpt.h b/gpt.h
index 2528b92..2d7a1ce 100644
--- a/gpt.h
+++ b/gpt.h
@@ -68,8 +68,9 @@ protected:
MBRData protectiveMBR;
string device; // device filename
DiskIO myDisk;
- uint32_t blockSize; // device block size
- uint64_t diskSize; // size of device, in blocks
+ uint32_t blockSize; // device logical block size
+ uint32_t physBlockSize; // device physical block size (or 0 if it can't be determined)
+ uint64_t diskSize; // size of device, in logical blocks
GPTValidity state; // is GPT valid?
int justLooking; // Set to 1 if program launched with "-l" or if read-only
int mainCrcOk;