diff options
author | Daniel Rosenberg <drosen@google.com> | 2024-05-13 14:33:31 -0700 |
---|---|---|
committer | Daniel Rosenberg <drosen@google.com> | 2024-05-13 15:13:58 -0700 |
commit | 92d0c2eeeb975b56293b6b317c02be6c35e8f532 (patch) | |
tree | 51e27929a27994ac131bfa14bb42faa8628694b2 | |
parent | cc2f93829ceda04f917cc09472072037c11fbce6 (diff) | |
download | vold-92d0c2eeeb975b56293b6b317c02be6c35e8f532.tar.gz |
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
-rw-r--r-- | fs/Vfat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/Vfat.cpp b/fs/Vfat.cpp index c0cd918d..d9e2713f 100644 --- a/fs/Vfat.cpp +++ b/fs/Vfat.cpp @@ -114,7 +114,7 @@ status_t Check(const std::string& source) { errno = EIO; return -1; } - } while (0); + } while (1); return 0; } |