Handle retry count
Test: vdc setCheckpoint 2 then reboot 3 times checking state
Bug: 112901762
Change-Id: I85a71d059bca27b76175b9bd8465cc453f0ddb8d
diff --git a/vdc.cpp b/vdc.cpp
index 5e2c37a..6efd72c 100644
--- a/vdc.cpp
+++ b/vdc.cpp
@@ -123,10 +123,9 @@
bool success = false;
checkStatus(vold->commitChanges(&success));
return success ? 1 : 0;
- } else if (args[0] == "checkpoint" && args[1] == "prepareDriveForCheckpoint" &&
- args.size() == 3) {
+ } else if (args[0] == "checkpoint" && args[1] == "prepareCheckpoint" && args.size() == 2) {
bool success = false;
- checkStatus(vold->prepareDriveForCheckpoint(args[2], &success));
+ checkStatus(vold->prepareCheckpoint(&success));
return success ? 1 : 0;
} else if (args[0] == "checkpoint" && args[1] == "restoreCheckpoint" && args.size() == 3) {
bool success = false;