summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2014-11-03 18:35:31 -0800
committerBrint E. Kriebel <bekit@cyngn.com>2014-11-03 18:35:31 -0800
commit2f5f3e1e6b2c16ec4475c6b267e3d37ef93c82a5 (patch)
tree17cf13bcf9479b23b1fe4fda3f9f486cd66999fe
parent0f81228fb98168be56122cbff8fe7c81e804f4ad (diff)
parentc1d985e1346fd6b1d4548f15a492298d758fb3e9 (diff)
downloadandroid_system_vold-stable/cm-11.0-XNF9X.tar.gz
android_system_vold-stable/cm-11.0-XNF9X.tar.bz2
android_system_vold-stable/cm-11.0-XNF9X.zip
-rw-r--r--Volume.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Volume.cpp b/Volume.cpp
index c6fb130..4196b2f 100644
--- a/Volume.cpp
+++ b/Volume.cpp
@@ -531,6 +531,16 @@ int Volume::mountVol() {
}
} else if (strcmp(fstype, "f2fs") == 0) {
+ /*
+ * fsck.f2fs does not fix any inconsistencies "yet".
+ *
+ * Disable fsck routine as this is just wasting time
+ * consumed to mount f2fs volumes.
+ *
+ * The kernel can determine if a f2fs volume is too damaged
+ * that it shouldn't get mounted.
+ */
+ #if 0
if (F2FS::check(devicePath)) {
errno = EIO;
/* Badness - abort the mount */
@@ -539,6 +549,7 @@ int Volume::mountVol() {
free(fstype);
return -1;
}
+ #endif
if (F2FS::doMount(devicePath, getMountpoint(), false, false, false, true)) {
SLOGE("%s failed to mount via F2FS (%s)\n", devicePath, strerror(errno));