Don't be picky about zap status.

Bug: 19993667
Change-Id: Id125d9252bf7130516c0ec619d5f067fea24d560
gugelfrei
Jeff Sharkey 9 years ago
parent 502164deaa
commit ffeb007978

@ -368,9 +368,10 @@ status_t Disk::partitionMixed(int8_t ratio) {
cmd.push_back("--zap-all");
cmd.push_back(mDevPath);
// Zap sometimes returns an error when it actually succeeded, so
// just log as warning and keep rolling forward.
if ((res = ForkExecvp(cmd)) != 0) {
LOG(ERROR) << "Failed to zap; status " << res;
return res;
LOG(WARNING) << "Failed to zap; status " << res;
}
// We've had some success above, so generate both the private partition

Loading…
Cancel
Save