Skip to contentSkip to conversation

fsck.f2fs: don't ask anything on dry-run

PATCH In review Jaegeuk Kim 2 participants 2 messages Jan 8, 2019 – Jan 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.f2fs: don't ask anything on dry-run

It doesn't need to ask recovering corruption on dry-run mode.

---
 fsck/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fsck/main.c +1 -1
index 65bdb5d..d3f0c0d 100644
@@ -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