commit | 8006c80960cf85033dab3b5b801b08fd2db10815 | [log] [tgz] |
---|---|---|
author | shaozhongqi <shaozhongqi@xiaomi.com> | Fri Nov 08 15:18:28 2019 -0800 |
committer | android-build-merger <android-build-merger@google.com> | Fri Nov 08 15:18:28 2019 -0800 |
tree | d9eab85af735192f47b4a76f6216b50a9fa7d8bb | |
parent | ce187e7fd66d1ece33ee65314810278a9c272d0b [diff] | |
parent | 7e249ebdae36ec773111c15e9980af23bd56292c [diff] |
Merge "Exfat Need to add automatic repair function when exfat fsck device" am: 7e249ebdae Change-Id: I835a8717fb25b651ce815c9912322b84e9d66041
diff --git a/fs/Exfat.cpp b/fs/Exfat.cpp index c624eb9..34f1024 100644 --- a/fs/Exfat.cpp +++ b/fs/Exfat.cpp
@@ -41,6 +41,7 @@ status_t Check(const std::string& source) { std::vector<std::string> cmd; cmd.push_back(kFsckPath); + cmd.push_back("-a"); cmd.push_back(source); int rc = ForkExecvp(cmd, nullptr, sFsckUntrustedContext);