fsck.f2fs: don't ask anything on dry-run
PATCH 1/1 fsck.f2fs: don't ask anything on dry-run
It doesn't need to ask recovering corruption on dry-run mode.
Signed-off-by Jaegeuk Kim <[email protected]>
--- fsck/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fsck/main.c +1 -1
@@ -822,7 +822,7 @@ fsck_again:f2fs_do_umount (sbi);if (c.func ==FSCK && c.bug_on) { -if (!c.ro && c.fix_on ==0 && c.auto_fix ==0 ) { +if (!c.ro && c.fix_on ==0 && c.auto_fix ==0 && !c.dry_run) {char ans[255 ] = {0 }; retry:printf ("Do you want to fix this partition? [Y/N] " );
Signature · 1 line
2.19.0.605.g01d371f741-goog
Quoted 3 lines · Jaegeuk Kim
It doesn't need to ask recovering corruption on dry-run mode.
Signed-off-by Jaegeuk Kim <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,