Home | History | Annotate | Download | only in e2fsck

Lines Matching defs:pctx

26 	struct problem_context	pctx;
33 clear_problem_context(&pctx);
36 fix_problem(ctx, PR_5_PASS_HEADER, &pctx);
70 struct problem_context *pctx)
74 if (pctx->blk == pctx->blk2)
75 pctx->blk2 = 0;
80 if (pctx->blk == pctx->blk2)
81 pctx->blk2 = 0;
86 if (pctx->ino == pctx->ino2)
87 pctx->ino2 = 0;
92 if (pctx->ino == pctx->ino2)
93 pctx->ino2 = 0;
98 fix_problem(ctx, problem, pctx);
99 pctx->blk = pctx->blk2 = NO_BLK;
100 pctx->ino = pctx->ino2 = 0;
113 struct problem_context pctx;
119 clear_problem_context(&pctx);
127 pctx.num = 1;
128 pctx.blk = fs->super->s_first_data_block;
129 pctx.blk2 = fs->super->s_blocks_count -1;
130 pctx.ino = ext2fs_get_block_bitmap_start(ctx->block_found_map);
131 pctx.ino2 = ext2fs_get_block_bitmap_end(ctx->block_found_map);
132 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
142 pctx.num = 2;
143 pctx.blk = fs->super->s_first_data_block;
144 pctx.blk2 = fs->super->s_blocks_count -1;
145 pctx.ino = ext2fs_get_block_bitmap_start(fs->block_map);
146 pctx.ino2 = ext2fs_get_block_bitmap_end(fs->block_map);
147 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
158 pctx.blk = pctx.blk2 = NO_BLK;
228 if (pctx.blk == NO_BLK) {
229 pctx.blk = pctx.blk2 = i;
233 (pctx.blk2 == i-1))
234 pctx.blk2++;
236 print_bitmap_problem(ctx, save_problem, &pctx);
237 pctx.blk = pctx.blk2 = i;
268 if (pctx.blk != NO_BLK)
269 print_bitmap_problem(ctx, save_problem, &pctx);
281 clear_problem_context(&pctx);
282 fix_problem(ctx, PR_5_COPY_BBITMAP_ERROR, &pctx);
298 pctx.group = i;
299 pctx.blk = fs->group_desc[i].bg_free_blocks_count;
300 pctx.blk2 = free_array[i];
303 &pctx)) {
312 pctx.group = 0;
313 pctx.blk = fs->super->s_free_blocks_count;
314 pctx.blk2 = free_blocks;
316 if (fix_problem(ctx, PR_5_FREE_BLOCK_COUNT, &pctx)) {
339 struct problem_context pctx;
344 clear_problem_context(&pctx);
354 pctx.num = 3;
355 pctx.blk = 1;
356 pctx.blk2 = fs->super->s_inodes_count;
357 pctx.ino = ext2fs_get_inode_bitmap_start(ctx->inode_used_map);
358 pctx.ino2 = ext2fs_get_inode_bitmap_end(ctx->inode_used_map);
359 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
367 pctx.num = 4;
368 pctx.blk = 1;
369 pctx.blk2 = fs->super->s_inodes_count;
370 pctx.ino = ext2fs_get_inode_bitmap_start(fs->inode_map);
371 pctx.ino2 = ext2fs_get_inode_bitmap_end(fs->inode_map);
372 fix_problem(ctx, PR_5_BMAP_ENDPOINTS, &pctx);
383 pctx.ino = pctx.ino2 = 0;
424 if (pctx.ino == 0) {
425 pctx.ino = pctx.ino2 = i;
429 (pctx.ino2 == i-1))
430 pctx.ino2++;
432 print_bitmap_problem(ctx, save_problem, &pctx);
433 pctx.ino = pctx.ino2 = i;
470 if (pctx.ino)
471 print_bitmap_problem(ctx, save_problem, &pctx);
484 clear_problem_context(&pctx);
485 fix_problem(ctx, PR_5_COPY_IBITMAP_ERROR, &pctx);
503 pctx.group = i;
504 pctx.ino = fs->group_desc[i].bg_free_inodes_count;
505 pctx.ino2 = free_array[i];
507 &pctx)) {
515 pctx.group = i;
516 pctx.ino = fs->group_desc[i].bg_used_dirs_count;
517 pctx.ino2 = dir_array[i];
520 &pctx)) {
529 pctx.group = -1;
530 pctx.ino = fs->super->s_free_inodes_count;
531 pctx.ino2 = free_inodes;
533 if (fix_problem(ctx, PR_5_FREE_INODE_COUNT, &pctx)) {
548 struct problem_context pctx;
550 clear_problem_context(&pctx);
553 pctx.errcode = ext2fs_fudge_inode_bitmap_end(fs->inode_map, end,
555 if (pctx.errcode) {
556 pctx.num = 1;
557 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);
567 if (fix_problem(ctx, PR_5_INODE_BMAP_PADDING, &pctx)) {
578 pctx.errcode = ext2fs_fudge_inode_bitmap_end(fs->inode_map,
580 if (pctx.errcode) {
581 pctx.num = 2;
582 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);
592 struct problem_context pctx;
594 clear_problem_context(&pctx);
598 pctx.errcode = ext2fs_fudge_block_bitmap_end(fs->block_map, end,
600 if (pctx.errcode) {
601 pctx.num = 3;
602 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);
612 pctx)) {
623 pctx.errcode = ext2fs_fudge_block_bitmap_end(fs->block_map,
625 if (pctx.errcode) {
626 pctx.num = 4;
627 fix_problem(ctx, PR_5_FUDGE_BITMAP_ERROR, &pctx);