Make checkpointing work on ext4
Test: All tests pass
Change-Id: I2a6cdf1edfe752f4633e1931e75d18659653938c
diff --git a/vdc.cpp b/vdc.cpp
index ff5073b..a080c17 100644
--- a/vdc.cpp
+++ b/vdc.cpp
@@ -124,6 +124,10 @@
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));