{
int i, ret;
char *base_dir = NULL;
-
- ret = fsck_cmdline_parser(argc, argv, &conf);
+ struct fsck_cmdline_parser_params params = {
+ .override = 0,
+ .initialize = 1,
+ .check_required = 1,
+ .check_ambiguity = 1,
+ .print_errors = 1
+ };
+ ret = fsck_cmdline_parser_ext(argc, argv, &conf, ¶ms);
if (ret < 0) {
+ loglevel = EMERG;
ret = -E_FSCK_SYNTAX;
goto out;
}
+ loglevel = conf.loglevel_arg;
HANDLE_VERSION_FLAG("fsck", conf);
if (conf.base_dir_given)
base_dir = para_strdup(conf.base_dir_arg);
base_dir = make_message("%s/.paraslash/afs_database", home);
free(home);
}
+ INFO_LOG("base_dir: %s\n", base_dir);
if (!conf.inputs_num) {
ret = check_all_tables(base_dir);
goto out;