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:
parent
cc2f93829c
commit
92d0c2eeeb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue