diff options
| author | arter97 <qkrwngud825@gmail.com> | 2014-09-13 23:06:05 +0900 |
|---|---|---|
| committer | LorDClockaN <davor@losinj.com> | 2014-10-12 14:53:15 +0200 |
| commit | 547c695b9475c2f96aae011df7217d80035cf1ea (patch) | |
| tree | 5378babc3cbac1c1fed5b9caa991bf02d4304c8c /Volume.cpp | |
| parent | 4d827c98a884d412f3997e88bc88830e177b718d (diff) | |
f2fs: disable fsck checkkitkat
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.
We should wait for f2fs-tools version higher than v1.3.0.
(fsck.f2fs for fixing inconsistencies is a work-in-progress)
References:
https://github.com/torvalds/linux/blob/master/Documentation/filesystems/f2fs.txt#L261
https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
Change-Id: I7e0a4662ac70860fe139bb9331b7aee1ad76220f
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Diffstat (limited to 'Volume.cpp')
| -rw-r--r-- | Volume.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -546,6 +546,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 */ @@ -554,6 +564,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)); |
