Tags: PATCH The attafhed patch adds a do-nothing -a option. As fsck.f2fs always tries automatically to fix problems.
--- fsck/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: f2fs-tools-1.3.0/fsck/main.c =================================================================== --- f2fs-tools-1.3.0.orig/fsck/main.c 2014-09-04 11:16:04.281639599 +1000 +++ f2fs-tools-1.3.0/fsck/main.c 2014-09-04 11:17:11.306108542 +1000 @@ -20,6 +20,7 @@ void fsck_usage() MSG(0, "\nUsage: fsck.f2fs [options] device\n"); MSG(0, "[options]:\n"); MSG(0, " -d debug level [default:0]\n"); + MSG(0, " -a [no-op for compatibility with other fsck]\n"); exit(1); } @@ -42,11 +43,13 @@ void f2fs_parse_options(int argc, char * char *prog = basename(argv[0]); if (!strcmp("fsck.f2fs", prog)) { - const char *option_string = "d:t"; + const char *option_string = "d:ta"; config.func = FSCK; while ((option = getopt(argc, argv, option_string)) != EOF) { switch (option) { + case 'a': + break; case 'd': config.dbg_lv = atoi(optarg); MSG(0, "Info: Debug level = %d\n", config.dbg_lv);
-- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA