diff options
author | Greg Hartman <ghartman@google.com> | 2017-03-28 01:02:21 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-28 01:02:21 +0000 |
commit | f08cbdc772016a5ac3d49a5d5095369a9b24d2a9 (patch) | |
tree | 7452ff4451a0cc4c07b32a3345b8eca5fea987f8 /gpt.h | |
parent | fa990d2e3b93ce7563f03188d52e784774239c1b (diff) | |
parent | 1e25b13a151de675e8f7c335a4c8f1cf91b7fd7b (diff) | |
download | gptfdisk-f08cbdc772016a5ac3d49a5d5095369a9b24d2a9.tar.gz |
Add an option to allow disk syncing to be turned off am: 3c01fa7513
am: 1e25b13a15
Change-Id: I575627881592fa6c6ebc94112d0b3a9aa8f1bb63
Diffstat (limited to 'gpt.h')
-rw-r--r-- | gpt.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -72,6 +72,7 @@ protected: 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 + bool syncing; // Set to true if we should sync and reload the partition table int mainCrcOk; int secondCrcOk; int mainPartsCrcOk; @@ -189,6 +190,7 @@ public: uint32_t ComputeAlignment(void); // Set alignment based on current partitions uint32_t GetAlignment(void) {return sectorAlignment;} void JustLooking(int i = 1) {justLooking = i;} + void TurnOffSyncing() {syncing = 0;} void BeQuiet(int i = 1) {beQuiet = i;} WhichToUse WhichWasUsed(void) {return whichWasUsed;} |