Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -141,9 +141,10 @@ static void check_fs(char *blk_device, char *fs_type, char *target) ...@@ -141,9 +141,10 @@ static void check_fs(char *blk_device, char *fs_type, char *target)
} else if (!strcmp(fs_type, "f2fs")) { } else if (!strcmp(fs_type, "f2fs")) {
char *f2fs_fsck_argv[] = { char *f2fs_fsck_argv[] = {
F2FS_FSCK_BIN, F2FS_FSCK_BIN,
"-f",
blk_device 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, ret = android_fork_execvp_ext(ARRAY_SIZE(f2fs_fsck_argv), f2fs_fsck_argv,
&status, true, LOG_KLOG | LOG_FILE, &status, true, LOG_KLOG | LOG_FILE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment