Lines Matching refs:pctx

35 	struct problem_context	pctx;
42 clear_problem_context(&pctx);
45 fix_problem(ctx, PR_5_PASS_HEADER, &pctx);
154 struct problem_context *pctx)
158 if (pctx->blk == pctx->blk2)
159 pctx->blk2 = 0;
164 if (pctx->blk == pctx->blk2)
165 pctx->blk2 = 0;
170 if (pctx->ino == pctx->ino2)
171 pctx->ino2 = 0;
176 if (pctx->ino == pctx->ino2)
177 pctx->ino2 = 0;
182 fix_problem(ctx, problem, pctx);
183 pctx->blk = pctx->blk2 = NO_BLK;
184 pctx->ino = pctx->ino2 = 0;
204 struct problem_context pctx;
222 clear_problem_context(&pctx);
230 pctx.num = 1;
231 pctx.blk = B2C(fs->super->s_first_data_block);
232 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1);
233 pctx.ino = ext2fs_get_block_bitmap_start2(ctx->block_found_map);
234 pctx.ino2 = ext2fs_get_block_bitmap_end2(ctx->block_found_map);
235 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
245 pctx.num = 2;
246 pctx.blk = B2C(fs->super->s_first_data_block);
247 pctx.blk2 = B2C(ext2fs_blocks_count(fs->super) - 1);
248 pctx.ino = ext2fs_get_block_bitmap_start2(fs->block_map);
249 pctx.ino2 = ext2fs_get_block_bitmap_end2(fs->block_map);
250 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
261 pctx.blk = pctx.blk2 = NO_BLK;
408 if (pctx.blk == NO_BLK) {
409 pctx.blk = pctx.blk2 = i;
413 (pctx.blk2 == i - EXT2FS_CLUSTER_RATIO(fs)))
414 pctx.blk2 += EXT2FS_CLUSTER_RATIO(fs);
416 print_bitmap_problem(ctx, save_problem, &pctx);
417 pctx.blk = pctx.blk2 = i;
471 if (pctx.blk != NO_BLK)
472 print_bitmap_problem(ctx, save_problem, &pctx);
484 clear_problem_context(&pctx);
485 fix_problem(ctx, PR_5_COPY_BBITMAP_ERROR, &pctx);
502 pctx.group = g;
503 pctx.blk = ext2fs_bg_free_blocks_count(fs, g);
504 pctx.blk2 = free_array[g];
507 &pctx)) {
516 pctx.group = 0;
517 pctx.blk = ext2fs_free_blocks_count(fs->super);
518 pctx.blk2 = free_blocks;
520 if (fix_problem(ctx, PR_5_FREE_BLOCK_COUNT, &pctx)) {
544 struct problem_context pctx;
552 clear_problem_context(&pctx);
562 pctx.num = 3;
563 pctx.blk = 1;
564 pctx.blk2 = fs->super->s_inodes_count;
565 pctx.ino = ext2fs_get_inode_bitmap_start2(ctx->inode_used_map);
566 pctx.ino2 = ext2fs_get_inode_bitmap_end2(ctx->inode_used_map);
567 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
575 pctx.num = 4;
576 pctx.blk = 1;
577 pctx.blk2 = fs->super->s_inodes_count;
578 pctx.ino = ext2fs_get_inode_bitmap_start2(fs->inode_map);
579 pctx.ino2 = ext2fs_get_inode_bitmap_end2(fs->inode_map);
580 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
591 pctx.ino = pctx.ino2 = 0;
656 if (pctx.ino == 0) {
657 pctx.ino = pctx.ino2 = i;
661 (pctx.ino2 == i-1))
662 pctx.ino2++;
664 print_bitmap_problem(ctx, save_problem, &pctx);
665 pctx.ino = pctx.ino2 = i;
735 if (pctx.ino)
736 print_bitmap_problem(ctx, save_problem, &pctx);
749 clear_problem_context(&pctx);
750 fix_problem(ctx, PR_5_COPY_IBITMAP_ERROR, &pctx);
769 pctx.group = i;
770 pctx.ino = ext2fs_bg_free_inodes_count(fs, i);
771 pctx.ino2 = free_array[i];
773 &pctx)) {
780 pctx.group = i;
781 pctx.ino = ext2fs_bg_used_dirs_count(fs, i);
782 pctx.ino2 = dir_array[i];
785 &pctx)) {
793 pctx.group = -1;
794 pctx.ino = fs->super->s_free_inodes_count;
795 pctx.ino2 = free_inodes;
797 if (fix_problem(ctx, PR_5_FREE_INODE_COUNT, &pctx)) {
811 struct problem_context pctx;
813 clear_problem_context(&pctx);
816 pctx.errcode = ext2fs_fudge_inode_bitmap_end(fs->inode_map, end,
818 if (pctx.errcode) {
819 pctx.num = 1;
820 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);
830 if (fix_problem(ctx, PR_5_INODE_BMAP_PADDING, &pctx)) {
841 pctx.errcode = ext2fs_fudge_inode_bitmap_end(fs->inode_map,
843 if (pctx.errcode) {
844 pctx.num = 2;
845 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);
855 struct problem_context pctx;
857 clear_problem_context(&pctx);
861 pctx.errcode = ext2fs_fudge_block_bitmap_end2(fs->block_map, end,
863 if (pctx.errcode) {
864 pctx.num = 3;
865 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);
876 if (fix_problem(ctx, PR_5_BLOCK_BMAP_PADDING, &pctx)) {
887 pctx.errcode = ext2fs_fudge_block_bitmap_end2(fs->block_map,
889 if (pctx.errcode) {
890 pctx.num = 4;
891 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);