Merge "Handle errors corrected exit status returned by fsck" into main am: 81ed259a35 am: 963b84c497 am: 02f6f002a4 am: f1ebbef37e

Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2651499

Change-Id: Ibdaaac04f61c07818bfb3e2b51b5d9db6b6f1a69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-09-12 04:34:28 +00:00 committed by Automerger Merge Worker
commit 2f96ee927c

View file

@ -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;