Merge "Handle errors corrected exit status returned by fsck" into main am: 81ed259a35
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2651499 Change-Id: I31ecc8519bd6b450c70353ad6ba18e7ef378d7bc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
963b84c497
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ status_t Check(const std::string& source) {
|
|||
if (rc == 0) {
|
||||
LOG(INFO) << "Check OK";
|
||||
return 0;
|
||||
} else if (rc == 1) {
|
||||
LOG(INFO) << "Filesystem errors corrected";
|
||||
return 0;
|
||||
} else {
|
||||
LOG(ERROR) << "Check failed (code " << rc << ")";
|
||||
errno = EIO;
|
||||
|
|
Loading…
Reference in a new issue