• Home
  • Raw
  • Download

Lines Matching refs:pctx

68 			      char *buf, struct problem_context *pctx);
76 struct problem_context pctx; member
84 struct problem_context pctx; in e2fsck_pass2() local
100 clear_problem_context(&cd.pctx); in e2fsck_pass2()
107 fix_problem(ctx, PR_2_PASS_HEADER, &cd.pctx); in e2fsck_pass2()
112 cd.pctx.errcode = 0; in e2fsck_pass2()
116 cd.pctx.errcode = ext2fs_create_icount2(fs, in e2fsck_pass2()
122 if (cd.pctx.errcode) { in e2fsck_pass2()
123 fix_problem(ctx, PR_2_ALLOCATE_ICOUNT, &cd.pctx); in e2fsck_pass2()
148 cd.pctx.errcode = ext2fs_dblist_iterate2(fs->dblist, check_dir_block, in e2fsck_pass2()
158 if (cd.pctx.errcode) { in e2fsck_pass2()
159 fix_problem(ctx, PR_2_DBLIST_ITERATE, &cd.pctx); in e2fsck_pass2()
170 clear_problem_context(&pctx); in e2fsck_pass2()
172 pctx.dir = dx_dir->ino; in e2fsck_pass2()
204 pctx.blkcount = b; in e2fsck_pass2()
205 pctx.group = dx_db->parent; in e2fsck_pass2()
209 pctx.blk = dx_db->min_hash; in e2fsck_pass2()
210 pctx.blk2 = dx_db->node_min_hash; in e2fsck_pass2()
212 fix_problem(ctx, code, &pctx); in e2fsck_pass2()
218 pctx.num = dx_dir->depth; in e2fsck_pass2()
220 fix_problem(ctx, code, &pctx); in e2fsck_pass2()
230 pctx.blk = dx_db->max_hash; in e2fsck_pass2()
231 pctx.blk2 = dx_db->node_max_hash; in e2fsck_pass2()
233 fix_problem(ctx, code, &pctx); in e2fsck_pass2()
238 fix_problem(ctx, code, &pctx); in e2fsck_pass2()
242 fix_problem(ctx, code, &pctx); in e2fsck_pass2()
246 if (bad_dir && fix_problem(ctx, PR_2_HTREE_CLEAR, &pctx)) { in e2fsck_pass2()
265 clear_problem_context(&pctx); in e2fsck_pass2()
269 fix_problem(ctx, PR_2_FEATURE_LARGE_FILES, &pctx)) { in e2fsck_pass2()
276 fix_problem(ctx, PR_1_FS_REV_LEVEL, &pctx)) { in e2fsck_pass2()
349 ext2_ino_t ino, struct problem_context *pctx) in check_dot() argument
367 if (fix_problem(ctx, problem, pctx)) { in check_dot()
379 if (fix_problem(ctx, PR_2_BAD_INODE_DOT, pctx)) { in check_dot()
388 fix_problem(ctx, PR_2_SPLIT_DOT, pctx)) { in check_dot()
410 ext2_ino_t ino, struct problem_context *pctx) in check_dotdot() argument
426 if (fix_problem(ctx, problem, pctx)) { in check_dotdot()
444 fix_problem(ctx, PR_2_NO_DIRINFO, pctx); in check_dotdot()
457 struct problem_context *pctx) in check_name() argument
466 fixup = fix_problem(ctx, PR_2_BAD_NAME, pctx); in check_name()
483 struct problem_context *pctx) in check_filetype() argument
492 !fix_problem(ctx, PR_2_CLEAR_FILETYPE, pctx)) in check_filetype()
514 pctx->num = should_be; in check_filetype()
517 pctx) == 0) in check_filetype()
570 cd->pctx.num = ext2fs_le16_to_cpu(limit->limit); in parse_int_node()
571 if (fix_problem(cd->ctx, PR_2_HTREE_BAD_LIMIT, &cd->pctx)) in parse_int_node()
575 cd->pctx.num = count; in parse_int_node()
576 if (fix_problem(cd->ctx, PR_2_HTREE_BAD_COUNT, &cd->pctx)) in parse_int_node()
591 cd->pctx.blk = blk; in parse_int_node()
593 &cd->pctx)) in parse_int_node()
598 fix_problem(cd->ctx, PR_2_HTREE_HASH_ORDER, &cd->pctx)) in parse_int_node()
632 clear_htree(cd->ctx, cd->pctx.ino); in parse_int_node()
733 struct problem_context pctx; in check_dir_block() local
754 cd->pctx.ino = ino; in check_dir_block()
755 cd->pctx.blk = block_nr; in check_dir_block()
756 cd->pctx.blkcount = db->blockcnt; in check_dir_block()
757 cd->pctx.ino2 = 0; in check_dir_block()
758 cd->pctx.dirent = 0; in check_dir_block()
759 cd->pctx.num = 0; in check_dir_block()
762 if (allocate_dir_block(ctx, db, buf, &cd->pctx)) in check_dir_block()
782 cd->pctx.errcode = ext2fs_read_dir_block3(fs, block_nr, buf, 0); in check_dir_block()
784 if (cd->pctx.errcode == EXT2_ET_DIR_CORRUPTED) in check_dir_block()
785 cd->pctx.errcode = 0; /* We'll handle this ourselves */ in check_dir_block()
786 if (cd->pctx.errcode) { in check_dir_block()
787 if (!fix_problem(ctx, PR_2_READ_DIRBLOCK, &cd->pctx)) { in check_dir_block()
798 &pctx)) { in check_dir_block()
822 fix_problem(ctx, PR_2_HTREE_BAD_ROOT, &cd->pctx)) { in check_dir_block()
852 cd->pctx.dirent = dirent; in check_dir_block()
853 cd->pctx.num = offset; in check_dir_block()
858 if (fix_problem(ctx, PR_2_DIR_CORRUPTED, &cd->pctx)) { in check_dir_block()
867 if (check_dot(ctx, dirent, ino, &cd->pctx)) in check_dir_block()
870 ret = check_dotdot(ctx, dirent, ino, &cd->pctx); in check_dir_block()
877 if (fix_problem(ctx, PR_2_LINK_DOT, &cd->pctx)) { in check_dir_block()
938 if (fix_problem(ctx, problem, &cd->pctx)) { in check_dir_block()
973 cd->pctx.group = group; in check_dir_block()
984 pctx.num = dirent->inode; in check_dir_block()
986 &cd->pctx)){ in check_dir_block()
997 pctx.num = dirent->inode; in check_dir_block()
998 if (fix_problem(ctx, PR_2_INOREF_IN_UNUSED, &cd->pctx)){ in check_dir_block()
1023 if (fix_problem(ctx, problem, &cd->pctx)) { in check_dir_block()
1034 if (check_name(ctx, dirent, ino, &cd->pctx)) in check_dir_block()
1037 if (check_filetype(ctx, dirent, ino, &cd->pctx)) in check_dir_block()
1064 cd->pctx.ino = dirent->inode; in check_dir_block()
1065 fix_problem(ctx, PR_2_NO_DIRINFO, &cd->pctx); in check_dir_block()
1069 cd->pctx.ino2 = subdir_parent; in check_dir_block()
1071 &cd->pctx)) { in check_dir_block()
1076 cd->pctx.ino2 = 0; in check_dir_block()
1086 clear_problem_context(&pctx); in check_dir_block()
1087 pctx.ino = ino; in check_dir_block()
1088 pctx.dirent = dirent; in check_dir_block()
1089 fix_problem(ctx, PR_2_REPORT_DUP_DIRENT, &pctx); in check_dir_block()
1120 cd->pctx.dir = cd->pctx.ino; in check_dir_block()
1127 cd->pctx.num = rec_len - fs->blocksize + offset; in check_dir_block()
1128 if (fix_problem(ctx, PR_2_FINAL_RECLEN, &cd->pctx)) { in check_dir_block()
1129 dirent->rec_len = cd->pctx.num; in check_dir_block()
1134 cd->pctx.errcode = ext2fs_write_dir_block3(fs, block_nr, buf, 0); in check_dir_block()
1135 if (cd->pctx.errcode) { in check_dir_block()
1137 &cd->pctx)) in check_dir_block()
1186 struct problem_context pctx; in deallocate_inode() local
1191 clear_problem_context(&pctx); in deallocate_inode()
1192 pctx.ino = ino; in deallocate_inode()
1202 pctx.errcode = ext2fs_adjust_ea_refcount2(fs, in deallocate_inode()
1205 if (pctx.errcode == EXT2_ET_BAD_EA_BLOCK_NUM) { in deallocate_inode()
1206 pctx.errcode = 0; in deallocate_inode()
1209 if (pctx.errcode) { in deallocate_inode()
1210 pctx.blk = ext2fs_file_acl_block(fs, &inode); in deallocate_inode()
1211 fix_problem(ctx, PR_2_ADJ_EA_REFCOUNT, &pctx); in deallocate_inode()
1233 pctx.errcode = ext2fs_block_iterate3(fs, ino, 0, block_buf, in deallocate_inode()
1236 if (pctx.errcode) { in deallocate_inode()
1237 fix_problem(ctx, PR_2_DEALLOC_INODE, &pctx); in deallocate_inode()
1270 struct problem_context pctx; in e2fsck_process_bad_inode() local
1275 clear_problem_context(&pctx); in e2fsck_process_bad_inode()
1276 pctx.ino = ino; in e2fsck_process_bad_inode()
1277 pctx.dir = dir; in e2fsck_process_bad_inode()
1278 pctx.inode = &inode; in e2fsck_process_bad_inode()
1282 if (fix_problem(ctx, PR_2_FILE_ACL_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1312 if (fix_problem(ctx, problem, &pctx)) { in e2fsck_process_bad_inode()
1323 if (fix_problem(ctx, PR_2_FADDR_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1339 pctx.num = *frag; in e2fsck_process_bad_inode()
1340 if (fix_problem(ctx, PR_2_FRAG_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1345 pctx.num = 0; in e2fsck_process_bad_inode()
1348 pctx.num = *fsize; in e2fsck_process_bad_inode()
1349 if (fix_problem(ctx, PR_2_FSIZE_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1354 pctx.num = 0; in e2fsck_process_bad_inode()
1361 pctx.num = inode.osd2.linux2.l_i_blocks_hi; in e2fsck_process_bad_inode()
1362 if (fix_problem(ctx, PR_2_BLOCKS_HI_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1371 pctx.num = inode.osd2.linux2.l_i_file_acl_high; in e2fsck_process_bad_inode()
1372 if (fix_problem(ctx, PR_2_I_FILE_ACL_HI_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1382 if (fix_problem(ctx, PR_2_FILE_ACL_BAD, &pctx)) { in e2fsck_process_bad_inode()
1390 if (fix_problem(ctx, PR_2_DIR_ACL_ZERO, &pctx)) { in e2fsck_process_bad_inode()
1414 struct problem_context *pctx) in allocate_dir_block() argument
1421 if (fix_problem(ctx, PR_2_DIRECTORY_HOLE, pctx) == 0) in allocate_dir_block()
1433 pctx->errcode = ext2fs_new_block2(fs, 0, ctx->block_found_map, &blk); in allocate_dir_block()
1434 if (pctx->errcode) { in allocate_dir_block()
1435 pctx->str = "ext2fs_new_block"; in allocate_dir_block()
1436 fix_problem(ctx, PR_2_ALLOC_DIRBOCK, pctx); in allocate_dir_block()
1447 pctx->errcode = ext2fs_new_dir_block(fs, 0, 0, &block); in allocate_dir_block()
1449 pctx->errcode = ext2fs_new_dir_block(fs, db->ino, in allocate_dir_block()
1452 if (pctx->errcode) { in allocate_dir_block()
1453 pctx->str = "ext2fs_new_dir_block"; in allocate_dir_block()
1454 fix_problem(ctx, PR_2_ALLOC_DIRBOCK, pctx); in allocate_dir_block()
1458 pctx->errcode = ext2fs_write_dir_block3(fs, blk, block, 0); in allocate_dir_block()
1460 if (pctx->errcode) { in allocate_dir_block()
1461 pctx->str = "ext2fs_write_dir_block"; in allocate_dir_block()
1462 fix_problem(ctx, PR_2_ALLOC_DIRBOCK, pctx); in allocate_dir_block()
1479 pctx->errcode = ext2fs_bmap2(fs, db->ino, &inode, 0, BMAP_SET, in allocate_dir_block()
1481 if (pctx->errcode) { in allocate_dir_block()
1482 pctx->str = "ext2fs_block_iterate"; in allocate_dir_block()
1483 fix_problem(ctx, PR_2_ALLOC_DIRBOCK, pctx); in allocate_dir_block()