Merge "Handle errors corrected exit status returned by fsck" into main

This commit is contained in:
Treehugger Robot 2023-09-12 01:03:08 +00:00 committed by Gerrit Code Review
commit 81ed259a35

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;