Lines Matching refs:pctx
212 struct problem_context pctx; in e2fsck_pass1_dupblocks() local
217 clear_problem_context(&pctx); in e2fsck_pass1_dupblocks()
219 pctx.errcode = ext2fs_allocate_inode_bitmap(fs, in e2fsck_pass1_dupblocks()
221 if (pctx.errcode) { in e2fsck_pass1_dupblocks()
222 fix_problem(ctx, PR_1B_ALLOCATE_IBITMAP_ERROR, &pctx); in e2fsck_pass1_dupblocks()
261 struct problem_context *pctx; member
271 struct problem_context pctx; in pass1b() local
273 clear_problem_context(&pctx); in pass1b()
276 fix_problem(ctx, PR_1B_PASS_HEADER, &pctx); in pass1b()
277 pctx.errcode = ext2fs_open_inode_scan(fs, ctx->inode_buffer_blocks, in pass1b()
279 if (pctx.errcode) { in pass1b()
280 fix_problem(ctx, PR_1B_ISCAN_ERROR, &pctx); in pass1b()
286 pb.pctx = &pctx; in pass1b()
287 pctx.str = "pass1b"; in pass1b()
289 pctx.errcode = ext2fs_get_next_inode(scan, &ino, &inode); in pass1b()
290 if (pctx.errcode == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE) in pass1b()
292 if (pctx.errcode) { in pass1b()
293 fix_problem(ctx, PR_1B_ISCAN_ERROR, &pctx); in pass1b()
299 pctx.ino = ctx->stashed_ino = ino; in pass1b()
310 pctx.errcode = ext2fs_block_iterate2(fs, ino, in pass1b()
322 if (pctx.errcode) in pass1b()
323 fix_problem(ctx, PR_1B_BLOCK_ITERATE, &pctx); in pass1b()
349 p->pctx->blk = *block_nr; in process_pass1b_block()
350 fix_problem(ctx, PR_1B_DUP_BLOCK, p->pctx); in process_pass1b_block()
409 struct problem_context pctx; in pass1c() local
411 clear_problem_context(&pctx); in pass1c()
414 fix_problem(ctx, PR_1C_PASS_HEADER, &pctx); in pass1c()
437 struct problem_context pctx; in pass1d() local
442 clear_problem_context(&pctx); in pass1d()
445 fix_problem(ctx, PR_1D_PASS_HEADER, &pctx); in pass1d()
448 pctx.num = dup_inode_count; /* dict_count(&ino_dict); */ in pass1d()
449 fix_problem(ctx, PR_1D_NUM_DUP_INODES, &pctx); in pass1d()
500 pctx.inode = &p->inode; in pass1d()
501 pctx.ino = ino; in pass1d()
502 pctx.dir = p->dir; in pass1d()
503 pctx.blkcount = p->num_dupblocks; in pass1d()
504 pctx.num = meta_data ? shared_len+1 : shared_len; in pass1d()
505 fix_problem(ctx, PR_1D_DUP_FILE, &pctx); in pass1d()
506 pctx.blkcount = 0; in pass1d()
507 pctx.num = 0; in pass1d()
510 fix_problem(ctx, PR_1D_SHARE_METADATA, &pctx); in pass1d()
520 pctx.inode = &t->inode; in pass1d()
521 pctx.ino = shared[i]; in pass1d()
522 pctx.dir = t->dir; in pass1d()
523 fix_problem(ctx, PR_1D_DUP_FILE_LIST, &pctx); in pass1d()
526 fix_problem(ctx, PR_1D_DUP_BLOCKS_DEALT, &pctx); in pass1d()
529 if (fix_problem(ctx, PR_1D_CLONE_QUESTION, &pctx)) { in pass1d()
530 pctx.errcode = clone_file(ctx, ino, p, block_buf); in pass1d()
531 if (pctx.errcode) in pass1d()
532 fix_problem(ctx, PR_1D_CLONE_ERROR, &pctx); in pass1d()
536 if (fix_problem(ctx, PR_1D_DELETE_QUESTION, &pctx)) in pass1d()
597 struct problem_context pctx; in delete_file() local
600 clear_problem_context(&pctx); in delete_file()
601 pctx.ino = pb.ino = ino; in delete_file()
604 pctx.str = "delete_file"; in delete_file()
608 pctx.errcode = ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_READ_ONLY, in delete_file()
610 if (pctx.errcode) in delete_file()
611 fix_problem(ctx, PR_1B_BLOCK_ITERATE, &pctx); in delete_file()
622 pctx.errcode = ext2fs_adjust_ea_refcount(fs, inode.i_file_acl, in delete_file()
624 if (pctx.errcode == EXT2_ET_BAD_EA_BLOCK_NUM) { in delete_file()
625 pctx.errcode = 0; in delete_file()
628 if (pctx.errcode) { in delete_file()
629 pctx.blk = inode.i_file_acl; in delete_file()
630 fix_problem(ctx, PR_1B_ADJ_EA_REFCOUNT, &pctx); in delete_file()
726 struct problem_context pctx; in clone_file() local
733 clear_problem_context(&pctx); in clone_file()
744 pctx.ino = ino; in clone_file()
745 pctx.str = "clone_file"; in clone_file()
747 pctx.errcode = ext2fs_block_iterate2(fs, ino, 0, block_buf, in clone_file()
750 if (pctx.errcode) { in clone_file()
751 fix_problem(ctx, PR_1B_BLOCK_ITERATE, &pctx); in clone_file()
752 retval = pctx.errcode; in clone_file()