OSDN Git Service

Exfat Need to add automatic repair function when exfat fsck device
authorshaozhongqi <shaozhongqi@xiaomi.com>
Thu, 24 Oct 2019 02:31:03 +0000 (10:31 +0800)
committerzhongqi shao <shaozhongqi2359@gmail.com>
Thu, 31 Oct 2019 06:37:50 +0000 (06:37 +0000)
bug:143229109

Test: Manual

Change-Id: Ibf650bdcb378dd9c07f904bdd18b36f376b45b61
Signed-off-by: shaozhongqi <shaozhongqi@xiaomi.com>
fs/Exfat.cpp

index c624eb9..34f1024 100644 (file)
@@ -41,6 +41,7 @@ bool IsSupported() {
 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);