Fix vfat retry fsck logic

On case 4 (filesystem modified), we attempt to recheck the filesystem,
but due to the while(0), this immediately returns 0, resulting in
mounting a filesystem with unfixed errors. This corrects that.

Bug: 340128961
Test: Ensure case 4 leads to retries
Change-Id: Ida2840538ad88c8de5341b0d71d3712d93b0cab1
This commit is contained in:
Daniel Rosenberg 2024-05-13 14:33:31 -07:00
parent cc2f93829c
commit 92d0c2eeeb

View file

@ -114,7 +114,7 @@ status_t Check(const std::string& source) {
errno = EIO; errno = EIO;
return -1; return -1;
} }
} while (0); } while (1);
return 0; return 0;
} }