Lines Matching refs:pctx
214 struct problem_context pctx; in e2fsck_pass1_dupblocks() local
219 clear_problem_context(&pctx); in e2fsck_pass1_dupblocks()
221 pctx.errcode = e2fsck_allocate_inode_bitmap(fs, in e2fsck_pass1_dupblocks()
225 if (pctx.errcode) { in e2fsck_pass1_dupblocks()
226 fix_problem(ctx, PR_1B_ALLOCATE_IBITMAP_ERROR, &pctx); in e2fsck_pass1_dupblocks()
285 struct problem_context *pctx; member
295 struct problem_context pctx; in pass1b() local
298 clear_problem_context(&pctx); in pass1b()
301 fix_problem(ctx, PR_1B_PASS_HEADER, &pctx); in pass1b()
302 pctx.errcode = ext2fs_open_inode_scan(fs, ctx->inode_buffer_blocks, in pass1b()
304 if (pctx.errcode) { in pass1b()
305 fix_problem(ctx, PR_1B_ISCAN_ERROR, &pctx); in pass1b()
311 pb.pctx = &pctx; in pass1b()
312 pctx.str = "pass1b"; in pass1b()
318 pctx.errcode = ext2fs_get_next_inode_full(scan, &ino, in pass1b()
320 if (pctx.errcode == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE) in pass1b()
322 if (pctx.errcode) { in pass1b()
323 pctx.ino = ino; in pass1b()
324 fix_problem(ctx, PR_1B_ISCAN_ERROR, &pctx); in pass1b()
330 pctx.ino = ctx->stashed_ino = ino; in pass1b()
341 pb.pctx->blk = pb.pctx->blk2 = 0; in pass1b()
345 pctx.errcode = ext2fs_block_iterate3(fs, ino, in pass1b()
358 op = pctx.blk == pctx.blk2 ? in pass1b()
360 fix_problem(ctx, op, pb.pctx); in pass1b()
367 if (pctx.errcode) in pass1b()
368 fix_problem(ctx, PR_1B_BLOCK_ITERATE, &pctx); in pass1b()
400 op = p->pctx->blk == p->pctx->blk2 ? in process_pass1b_block()
403 fix_problem(ctx, op, p->pctx); in process_pass1b_block()
405 p->pctx->blk = *block_nr; in process_pass1b_block()
407 p->pctx->blk2 = *block_nr; in process_pass1b_block()
478 struct problem_context pctx; in pass1c() local
480 clear_problem_context(&pctx); in pass1c()
483 fix_problem(ctx, PR_1C_PASS_HEADER, &pctx); in pass1c()
506 struct problem_context pctx; in pass1d() local
511 clear_problem_context(&pctx); in pass1d()
514 fix_problem(ctx, PR_1D_PASS_HEADER, &pctx); in pass1d()
517 pctx.num = dup_inode_count; /* dict_count(&ino_dict); */ in pass1d()
518 fix_problem(ctx, PR_1D_NUM_DUP_INODES, &pctx); in pass1d()
570 pctx.inode = EXT2_INODE(&p->inode); in pass1d()
571 pctx.ino = ino; in pass1d()
572 pctx.dir = p->dir; in pass1d()
573 pctx.blkcount = p->num_dupblocks; in pass1d()
574 pctx.num = meta_data ? shared_len+1 : shared_len; in pass1d()
575 fix_problem(ctx, PR_1D_DUP_FILE, &pctx); in pass1d()
576 pctx.blkcount = 0; in pass1d()
577 pctx.num = 0; in pass1d()
580 fix_problem(ctx, PR_1D_SHARE_METADATA, &pctx); in pass1d()
590 pctx.inode = EXT2_INODE(&t->inode); in pass1d()
591 pctx.ino = shared[i]; in pass1d()
592 pctx.dir = t->dir; in pass1d()
593 fix_problem(ctx, PR_1D_DUP_FILE_LIST, &pctx); in pass1d()
600 fix_problem(ctx, PR_1D_DUP_BLOCKS_DEALT, &pctx); in pass1d()
604 fix_problem(ctx, PR_1D_CLONE_QUESTION, &pctx)) { in pass1d()
605 pctx.errcode = clone_file(ctx, ino, p, block_buf); in pass1d()
606 if (pctx.errcode) in pass1d()
607 fix_problem(ctx, PR_1D_CLONE_ERROR, &pctx); in pass1d()
617 fix_problem(ctx, PR_1D_DELETE_QUESTION, &pctx)) in pass1d()
689 struct problem_context pctx; in delete_file() local
692 clear_problem_context(&pctx); in delete_file()
693 pctx.ino = pb.ino = ino; in delete_file()
696 pctx.str = "delete_file"; in delete_file()
700 pctx.errcode = ext2fs_block_iterate3(fs, ino, in delete_file()
704 if (pctx.errcode) in delete_file()
705 fix_problem(ctx, PR_1B_BLOCK_ITERATE, &pctx); in delete_file()
723 pctx.errcode = ext2fs_adjust_ea_refcount3(fs, file_acl_block, in delete_file()
725 if (pctx.errcode == EXT2_ET_BAD_EA_BLOCK_NUM) { in delete_file()
726 pctx.errcode = 0; in delete_file()
729 if (pctx.errcode) { in delete_file()
730 pctx.blk = file_acl_block; in delete_file()
731 fix_problem(ctx, PR_1B_ADJ_EA_REFCOUNT, &pctx); in delete_file()
914 struct problem_context pctx; in clone_file() local
921 clear_problem_context(&pctx); in clone_file()
938 pctx.ino = ino; in clone_file()
939 pctx.str = "clone_file"; in clone_file()
941 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in clone_file()
945 if (pctx.errcode) { in clone_file()
946 fix_problem(ctx, PR_1B_BLOCK_ITERATE, &pctx); in clone_file()
947 retval = pctx.errcode; in clone_file()