diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2017-07-25 21:33:18 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2017-07-25 21:33:18 -0400 |
commit | fc0e014beaa6935576e93cf440f8b3d960b2d3f7 (patch) | |
tree | c56a222096e64eac963c84b64d4c7bdc47c869ca /gpt.h | |
parent | 2a6daafeda4876dc694b97a41f5b0d0626a6fa16 (diff) | |
download | sgdisk-fc0e014beaa6935576e93cf440f8b3d960b2d3f7.tar.gz |
Added code to read physical block size on Linux.
Diffstat (limited to 'gpt.h')
-rw-r--r-- | gpt.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |