* [PATCH] fsck.f2fs: add -y for generic fsck
@ 2017-12-29 2:00 Jaegeuk Kim
2017-12-29 8:46 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Jaegeuk Kim @ 2017-12-29 2:00 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
-y is same as -f, which fixes any corruption all the time.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fsck/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fsck/main.c b/fsck/main.c
index db5c413..f35d01d 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -57,6 +57,7 @@ void fsck_usage()
MSG(0, " -S sparse_mode\n");
MSG(0, " -t show directory tree\n");
MSG(0, " -q preserve quota limits\n");
+ MSG(0, " -y fix all the time\n");
MSG(0, " --dry-run do not really fix corruptions\n");
exit(1);
}
@@ -159,7 +160,7 @@ void f2fs_parse_options(int argc, char *argv[])
}
if (!strcmp("fsck.f2fs", prog)) {
- const char *option_string = ":ad:fp:q:St";
+ const char *option_string = ":ad:fp:q:Sty";
int opt = 0;
struct option long_opt[] = {
{"dry-run", no_argument, 0, 1},
@@ -213,6 +214,7 @@ void f2fs_parse_options(int argc, char *argv[])
MSG(0, "Info: Debug level = %d\n", c.dbg_lv);
break;
case 'f':
+ case 'y':
c.fix_on = 1;
MSG(0, "Info: Force to fix corruption\n");
break;
--
2.15.0.531.g2ccb3012c9-goog
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fsck.f2fs: add -y for generic fsck
2017-12-29 2:00 [PATCH] fsck.f2fs: add -y for generic fsck Jaegeuk Kim
@ 2017-12-29 8:46 ` Chao Yu
0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2017-12-29 8:46 UTC (permalink / raw)
To: Jaegeuk Kim, linux-f2fs-devel
On 2017/12/29 10:00, Jaegeuk Kim wrote:
> -y is same as -f, which fixes any corruption all the time.
>
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-29 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29 2:00 [PATCH] fsck.f2fs: add -y for generic fsck Jaegeuk Kim
2017-12-29 8:46 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).