• Home
  • Raw
  • Download

Lines Matching refs:cd

90 	struct check_dir_struct cd;  in e2fsck_pass2()  local
99 clear_problem_context(&cd.pctx); in e2fsck_pass2()
106 fix_problem(ctx, PR_2_PASS_HEADER, &cd.pctx); in e2fsck_pass2()
111 cd.pctx.errcode = 0; in e2fsck_pass2()
113 cd.pctx.errcode = ext2fs_create_icount2(fs, in e2fsck_pass2()
117 if (cd.pctx.errcode) { in e2fsck_pass2()
118 fix_problem(ctx, PR_2_ALLOCATE_ICOUNT, &cd.pctx); in e2fsck_pass2()
132 cd.buf = buf; in e2fsck_pass2()
133 cd.ctx = ctx; in e2fsck_pass2()
134 cd.count = 1; in e2fsck_pass2()
135 cd.max = ext2fs_dblist_count(fs->dblist); in e2fsck_pass2()
138 (void) (ctx->progress)(ctx, 2, 0, cd.max); in e2fsck_pass2()
143 cd.pctx.errcode = ext2fs_dblist_iterate(fs->dblist, check_dir_block, in e2fsck_pass2()
144 &cd); in e2fsck_pass2()
153 if (cd.pctx.errcode) { in e2fsck_pass2()
154 fix_problem(ctx, PR_2_DBLIST_ITERATE, &cd.pctx); in e2fsck_pass2()
521 struct check_dir_struct *cd, in parse_int_node() argument
564 cd->pctx.num = ext2fs_le16_to_cpu(limit->limit); in parse_int_node()
565 if (fix_problem(cd->ctx, PR_2_HTREE_BAD_LIMIT, &cd->pctx)) in parse_int_node()
569 cd->pctx.num = count; in parse_int_node()
570 if (fix_problem(cd->ctx, PR_2_HTREE_BAD_COUNT, &cd->pctx)) in parse_int_node()
585 cd->pctx.blk = blk; in parse_int_node()
586 if (fix_problem(cd->ctx, PR_2_HTREE_BADBLK, in parse_int_node()
587 &cd->pctx)) in parse_int_node()
592 fix_problem(cd->ctx, PR_2_HTREE_HASH_ORDER, &cd->pctx)) in parse_int_node()
626 clear_htree(cd->ctx, cd->pctx.ino); in parse_int_node()
721 struct check_dir_struct *cd; in check_dir_block() local
732 cd = (struct check_dir_struct *) priv_data; in check_dir_block()
733 buf = cd->buf; in check_dir_block()
734 ctx = cd->ctx; in check_dir_block()
739 if (ctx->progress && (ctx->progress)(ctx, 2, cd->count++, cd->max)) in check_dir_block()
749 cd->pctx.ino = ino; in check_dir_block()
750 cd->pctx.blk = block_nr; in check_dir_block()
751 cd->pctx.blkcount = db->blockcnt; in check_dir_block()
752 cd->pctx.ino2 = 0; in check_dir_block()
753 cd->pctx.dirent = 0; in check_dir_block()
754 cd->pctx.num = 0; in check_dir_block()
757 if (allocate_dir_block(ctx, db, buf, &cd->pctx)) in check_dir_block()
777 cd->pctx.errcode = ext2fs_read_dir_block(fs, block_nr, buf); in check_dir_block()
779 if (cd->pctx.errcode == EXT2_ET_DIR_CORRUPTED) in check_dir_block()
780 cd->pctx.errcode = 0; /* We'll handle this ourselves */ in check_dir_block()
781 if (cd->pctx.errcode) { in check_dir_block()
782 if (!fix_problem(ctx, PR_2_READ_DIRBLOCK, &cd->pctx)) { in check_dir_block()
817 fix_problem(ctx, PR_2_HTREE_BAD_ROOT, &cd->pctx)) { in check_dir_block()
847 cd->pctx.dirent = dirent; in check_dir_block()
848 cd->pctx.num = offset; in check_dir_block()
853 if (fix_problem(ctx, PR_2_DIR_CORRUPTED, &cd->pctx)) { in check_dir_block()
861 if (fix_problem(ctx, PR_2_FILENAME_LONG, &cd->pctx)) { in check_dir_block()
868 if (check_dot(ctx, dirent, ino, &cd->pctx)) in check_dir_block()
871 ret = check_dotdot(ctx, dirent, ino, &cd->pctx); in check_dir_block()
878 if (fix_problem(ctx, PR_2_LINK_DOT, &cd->pctx)) { in check_dir_block()
939 if (fix_problem(ctx, problem, &cd->pctx)) { in check_dir_block()
974 cd->pctx.group = group; in check_dir_block()
987 &cd->pctx)){ in check_dir_block()
999 if (fix_problem(ctx, PR_2_INOREF_IN_UNUSED, &cd->pctx)){ in check_dir_block()
1019 if (fix_problem(ctx, problem, &cd->pctx)) { in check_dir_block()
1030 if (check_name(ctx, dirent, ino, &cd->pctx)) in check_dir_block()
1033 if (check_filetype(ctx, dirent, ino, &cd->pctx)) in check_dir_block()
1060 cd->pctx.ino = dirent->inode; in check_dir_block()
1061 fix_problem(ctx, PR_2_NO_DIRINFO, &cd->pctx); in check_dir_block()
1065 cd->pctx.ino2 = subdir_parent; in check_dir_block()
1067 &cd->pctx)) { in check_dir_block()
1072 cd->pctx.ino2 = 0; in check_dir_block()
1116 cd->pctx.dir = cd->pctx.ino; in check_dir_block()
1119 parse_int_node(fs, db, cd, dx_dir, buf); in check_dir_block()
1123 cd->pctx.num = rec_len - fs->blocksize + offset; in check_dir_block()
1124 if (fix_problem(ctx, PR_2_FINAL_RECLEN, &cd->pctx)) { in check_dir_block()
1125 dirent->rec_len = cd->pctx.num; in check_dir_block()
1130 cd->pctx.errcode = ext2fs_write_dir_block(fs, block_nr, buf); in check_dir_block()
1131 if (cd->pctx.errcode) { in check_dir_block()
1133 &cd->pctx)) in check_dir_block()