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: JP Abgrall <jpa@google.com>
This commit is contained in:
parent
0eabf64ce0
commit
eb6036ac6b
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue