Lines Matching refs:ctx
1550 int end_problem_latch(e2fsck_t ctx, int mask)
1559 answer = fix_problem(ctx, ldesc->end_message, &pctx);
1588 void clear_problem_context(struct problem_context *ctx)
1590 memset(ctx, 0, sizeof(struct problem_context));
1591 ctx->blkcount = -1;
1592 ctx->group = -1;
1595 static void reconfigure_bool(e2fsck_t ctx, struct e2fsck_problem *ptr,
1601 profile_get_boolean(ctx->profile, "problems", key, name, bool, &bool);
1609 int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx)
1611 ext2_filsys fs = ctx->fs;
1629 profile_get_string(ctx->profile, "problems", key,
1634 reconfigure_bool(ctx, ptr, key, PR_PREEN_OK, "preen_ok");
1635 reconfigure_bool(ctx, ptr, key, PR_NO_OK, "no_ok");
1636 reconfigure_bool(ctx, ptr, key, PR_NO_DEFAULT, "no_default");
1637 reconfigure_bool(ctx, ptr, key, PR_MSG_ONLY, "print_message_only");
1638 reconfigure_bool(ctx, ptr, key, PR_PREEN_NOMSG, "preen_nomessage");
1639 reconfigure_bool(ctx, ptr, key, PR_NOCOLLATE, "no_collate");
1640 reconfigure_bool(ctx, ptr, key, PR_NO_NOMSG, "no_nomsg");
1641 reconfigure_bool(ctx, ptr, key, PR_PREEN_NOHDR, "preen_noheader");
1647 ((ptr->flags & PR_PREEN_NO) && (ctx->options & E2F_OPT_PREEN)) ||
1648 (ctx->options & E2F_OPT_NO))
1658 ans = fix_problem(ctx, ldesc->question, pctx);
1669 (ctx->options & E2F_OPT_PREEN))
1672 (ctx->options & E2F_OPT_NO))
1676 if ((ctx->options & E2F_OPT_PREEN) &&
1678 printf("%s: ", ctx->device_name ?
1679 ctx->device_name : ctx->filesystem_name);
1682 print_e2fsck_message(ctx, _(message), pctx, 1, 0);
1685 preenhalt(ctx);
1688 fatal_error(ctx, 0);
1696 if (ctx->options & E2F_OPT_PREEN) {
1709 answer = ask(ctx, _(prompt[(int) ptr->prompt]), def_yn);
1720 fatal_error(ctx, 0);
1723 ctx, ptr->second_code, pctx);