diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-10-03 20:15:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-03 20:15:48 +0000 |
commit | ac244261c8abaaaab5cd24506dc464fb6d762043 (patch) | |
tree | 604d172bc6c89b2a5171ff64206f6534749629f9 /vdc.cpp | |
parent | b39e6f28875194720b2badf6ce01aa9a68ac9bb4 (diff) | |
parent | 1abb2fe2787637192fd07fa0481633fa02ea03c4 (diff) | |
download | vold-ac244261c8abaaaab5cd24506dc464fb6d762043.tar.gz |
Merge "Make checkpointing work on ext4"
Diffstat (limited to 'vdc.cpp')
-rw-r--r-- | vdc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -124,6 +124,10 @@ int main(int argc, char** argv) { bool success = false; checkStatus(vold->prepareDriveForCheckpoint(args[2], &success)); return success ? 1 : 0; + } else if (args[0] == "checkpoint" && args[1] == "restoreCheckpoint" && args.size() == 3) { + bool success = false; + checkStatus(vold->restoreCheckpoint(args[2], &success)); + return success ? 1 : 0; } else if (args[0] == "checkpoint" && args[1] == "markBootAttempt" && args.size() == 2) { bool success = false; checkStatus(vold->markBootAttempt(&success)); |