Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb6036ac authored by JP Abgrall's avatar JP Abgrall
Browse files

fs_mgr: let fsck.f2fs actually attempt a fix

The newer fsck.f2fs (1.4.0++) has better fix support, so invoke it.

Requires http://ag/583949

 f2fs-tools update.

Bug: 17640053
Bug: 18292088
Change-Id: I42370d92b232e0bdbf28cccf7035a15dbffeb268
Signed-off-by: default avatarJP Abgrall <jpa@google.com>
parent 0eabf64c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -141,9 +141,10 @@ static void check_fs(char *blk_device, char *fs_type, char *target)
    } else if (!strcmp(fs_type, "f2fs")) {
            char *f2fs_fsck_argv[] = {
                    F2FS_FSCK_BIN,
                    "-f",
                    blk_device
            };
        INFO("Running %s on %s\n", F2FS_FSCK_BIN, blk_device);
        INFO("Running %s -f %s\n", F2FS_FSCK_BIN, blk_device);

        ret = android_fork_execvp_ext(ARRAY_SIZE(f2fs_fsck_argv), f2fs_fsck_argv,
                                      &status, true, LOG_KLOG | LOG_FILE,