• Home
  • Raw
  • Download

Lines Matching refs:pctx

47 			   struct problem_context *pctx);
60 struct problem_context pctx; in e2fsck_pass3() local
65 clear_problem_context(&pctx); in e2fsck_pass3()
72 fix_problem(ctx, PR_3_PASS_HEADER, &pctx); in e2fsck_pass3()
77 pctx.errcode = e2fsck_allocate_inode_bitmap(fs, _("inode done bitmap"), in e2fsck_pass3()
80 if (pctx.errcode) { in e2fsck_pass3()
81 pctx.num = 2; in e2fsck_pass3()
82 fix_problem(ctx, PR_3_ALLOCATE_IBITMAP_ERROR, &pctx); in e2fsck_pass3()
109 if (check_directory(ctx, dir->ino, &pctx)) in e2fsck_pass3()
162 struct problem_context pctx; in check_root() local
164 clear_problem_context(&pctx); in check_root()
174 fix_problem(ctx, PR_3_ROOT_NOT_DIR_ABORT, &pctx); in check_root()
180 if (!fix_problem(ctx, PR_3_NO_ROOT_INODE, &pctx)) { in check_root()
181 fix_problem(ctx, PR_3_NO_ROOT_INODE_ABORT, &pctx); in check_root()
196 pctx.errcode = ext2fs_new_block2(fs, 0, ctx->block_found_map, &blk); in check_root()
197 if (pctx.errcode) { in check_root()
198 pctx.str = "ext2fs_new_block"; in check_root()
199 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx); in check_root()
222 pctx.errcode = ext2fs_write_new_inode(fs, EXT2_ROOT_INO, &inode); in check_root()
223 if (pctx.errcode) { in check_root()
224 pctx.str = "ext2fs_write_inode"; in check_root()
225 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx); in check_root()
235 pctx.errcode = ext2fs_new_dir_block(fs, EXT2_ROOT_INO, EXT2_ROOT_INO, in check_root()
237 if (pctx.errcode) { in check_root()
238 pctx.str = "ext2fs_new_dir_block"; in check_root()
239 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx); in check_root()
244 pctx.errcode = ext2fs_write_dir_block4(fs, blk, block, 0, in check_root()
247 if (pctx.errcode) { in check_root()
248 pctx.str = "ext2fs_write_dir_block4"; in check_root()
249 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx); in check_root()
284 struct problem_context *pctx) in check_directory() argument
305 fix_problem(ctx, PR_3_NO_DIRINFO, pctx); in check_directory()
318 pctx->ino = ino; in check_directory()
319 if (fix_problem(ctx, PR_3_UNCONNECTED_DIR, pctx)) { in check_directory()
320 if (e2fsck_reconnect_file(ctx, pctx->ino)) in check_directory()
323 fix_dotdot(ctx, pctx->ino, in check_directory()
344pctx->errcode = e2fsck_allocate_inode_bitmap(fs, _("inode loop detection bitmap"), EXT2FS_BMAP64_A… in check_directory()
345 if (pctx->errcode) { in check_directory()
346 pctx->num = 1; in check_directory()
348 PR_3_ALLOCATE_IBITMAP_ERROR, pctx); in check_directory()
361 pctx->ino = dir; in check_directory()
362 if (e2fsck_dir_info_get_dotdot(ctx, dir, &pctx->ino2) || in check_directory()
363 e2fsck_dir_info_get_parent(ctx, dir, &pctx->dir)) { in check_directory()
364 fix_problem(ctx, PR_3_NO_DIRINFO, pctx); in check_directory()
367 if (pctx->ino2 != pctx->dir) { in check_directory()
368 if (fix_problem(ctx, PR_3_BAD_DOT_DOT, pctx)) in check_directory()
369 fix_dotdot(ctx, dir, pctx->dir); in check_directory()
387 struct problem_context pctx; in e2fsck_get_lost_and_found() local
393 clear_problem_context(&pctx); in e2fsck_get_lost_and_found()
415 if (!fix_problem(ctx, PR_3_LPF_INLINE_DATA, &pctx)) in e2fsck_get_lost_and_found()
421 if (!fix_problem(ctx, PR_3_LPF_ENCRYPTED, &pctx)) in e2fsck_get_lost_and_found()
434 pctx.ino = ino; in e2fsck_get_lost_and_found()
435 if (!fix_problem(ctx, PR_3_LPF_NOTDIR, &pctx)) in e2fsck_get_lost_and_found()
440 pctx.errcode = ext2fs_unlink(fs, EXT2_ROOT_INO, name, ino, 0); in e2fsck_get_lost_and_found()
441 if (pctx.errcode) { in e2fsck_get_lost_and_found()
442 pctx.str = "ext2fs_unlink"; in e2fsck_get_lost_and_found()
443 fix_problem(ctx, PR_3_CREATE_LPF_ERROR, &pctx); in e2fsck_get_lost_and_found()
458 pctx.errcode = retval; in e2fsck_get_lost_and_found()
459 fix_problem(ctx, PR_3_ERR_FIND_LPF, &pctx); in e2fsck_get_lost_and_found()
480 fix_problem(ctx, PR_3_LPF_NO_SPACE, &pctx)) { in e2fsck_get_lost_and_found()
481 fix_problem(ctx, PR_3_NO_SPACE_TO_RECOVER, &pctx); in e2fsck_get_lost_and_found()
486 pctx.errcode = retval; in e2fsck_get_lost_and_found()
487 fix_problem(ctx, PR_3_ERR_LPF_NEW_BLOCK, &pctx); in e2fsck_get_lost_and_found()
500 fix_problem(ctx, PR_3_LPF_NO_SPACE, &pctx)) { in e2fsck_get_lost_and_found()
501 fix_problem(ctx, PR_3_NO_SPACE_TO_RECOVER, &pctx); in e2fsck_get_lost_and_found()
506 pctx.errcode = retval; in e2fsck_get_lost_and_found()
507 fix_problem(ctx, PR_3_ERR_LPF_NEW_INODE, &pctx); in e2fsck_get_lost_and_found()
528 pctx.errcode = ext2fs_write_new_inode(fs, ino, EXT2_INODE(&inode)); in e2fsck_get_lost_and_found()
529 if (pctx.errcode) { in e2fsck_get_lost_and_found()
530 pctx.str = "ext2fs_write_inode"; in e2fsck_get_lost_and_found()
531 fix_problem(ctx, PR_3_CREATE_LPF_ERROR, &pctx); in e2fsck_get_lost_and_found()
542 pctx.errcode = retval; in e2fsck_get_lost_and_found()
543 fix_problem(ctx, PR_3_ERR_LPF_NEW_DIR_BLOCK, &pctx); in e2fsck_get_lost_and_found()
550 pctx.errcode = retval; in e2fsck_get_lost_and_found()
551 fix_problem(ctx, PR_3_ERR_LPF_WRITE_BLOCK, &pctx); in e2fsck_get_lost_and_found()
558 pctx.errcode = ext2fs_link(fs, EXT2_ROOT_INO, name, ino, EXT2_FT_DIR); in e2fsck_get_lost_and_found()
559 if (pctx.errcode == EXT2_ET_DIR_NO_SPACE) { in e2fsck_get_lost_and_found()
560 pctx.errcode = ext2fs_expand_dir(fs, EXT2_ROOT_INO); in e2fsck_get_lost_and_found()
561 if (pctx.errcode) in e2fsck_get_lost_and_found()
563 pctx.errcode = ext2fs_link(fs, EXT2_ROOT_INO, name, ino, in e2fsck_get_lost_and_found()
566 if (pctx.errcode) { in e2fsck_get_lost_and_found()
568 pctx.str = "ext2fs_link"; in e2fsck_get_lost_and_found()
569 fix_problem(ctx, PR_3_CREATE_LPF_ERROR, &pctx); in e2fsck_get_lost_and_found()
597 struct problem_context pctx; in e2fsck_reconnect_file() local
601 clear_problem_context(&pctx); in e2fsck_reconnect_file()
602 pctx.ino = ino; in e2fsck_reconnect_file()
609 fix_problem(ctx, PR_3_NO_LPF, &pctx); in e2fsck_reconnect_file()
618 if (!fix_problem(ctx, PR_3_EXPAND_LF_DIR, &pctx)) in e2fsck_reconnect_file()
623 pctx.errcode = retval; in e2fsck_reconnect_file()
624 fix_problem(ctx, PR_3_CANT_EXPAND_LPF, &pctx); in e2fsck_reconnect_file()
631 pctx.errcode = retval; in e2fsck_reconnect_file()
632 fix_problem(ctx, PR_3_CANT_RECONNECT, &pctx); in e2fsck_reconnect_file()
700 struct problem_context pctx; in fix_dotdot_proc() local
707 clear_problem_context(&pctx); in fix_dotdot_proc()
711 pctx.errcode = retval; in fix_dotdot_proc()
712 fix_problem(fp->ctx, PR_3_ADJUST_INODE, &pctx); in fix_dotdot_proc()
716 pctx.errcode = retval; in fix_dotdot_proc()
717 fix_problem(fp->ctx, PR_3_ADJUST_INODE, &pctx); in fix_dotdot_proc()
734 struct problem_context pctx; in fix_dotdot() local
746 clear_problem_context(&pctx); in fix_dotdot()
747 pctx.ino = ino; in fix_dotdot()
759 pctx.errcode = retval; in fix_dotdot()
761 PR_3_FIX_PARENT_NOFIND, &pctx); in fix_dotdot()
766 fix_problem(ctx, PR_3_NO_DIRINFO, &pctx); in fix_dotdot()