Home | History | Annotate | Download | only in e2fsck

Lines Matching defs:pctx

46 			   struct problem_context *pctx);
59 struct problem_context pctx;
64 clear_problem_context(&pctx);
71 fix_problem(ctx, PR_3_PASS_HEADER, &pctx);
76 pctx.errcode = ext2fs_allocate_inode_bitmap(fs, _("inode done bitmap"),
78 if (pctx.errcode) {
79 pctx.num = 2;
80 fix_problem(ctx, PR_3_ALLOCATE_IBITMAP_ERROR, &pctx);
106 if (check_directory(ctx, dir->ino, &pctx))
147 struct problem_context pctx;
149 clear_problem_context(&pctx);
159 fix_problem(ctx, PR_3_ROOT_NOT_DIR_ABORT, &pctx);
165 if (!fix_problem(ctx, PR_3_NO_ROOT_INODE, &pctx)) {
166 fix_problem(ctx, PR_3_NO_ROOT_INODE_ABORT, &pctx);
176 pctx.errcode = ext2fs_new_block(fs, 0, ctx->block_found_map, &blk);
177 if (pctx.errcode) {
178 pctx.str = "ext2fs_new_block";
179 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx);
190 pctx.errcode = ext2fs_new_dir_block(fs, EXT2_ROOT_INO, EXT2_ROOT_INO,
192 if (pctx.errcode) {
193 pctx.str = "ext2fs_new_dir_block";
194 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx);
199 pctx.errcode = ext2fs_write_dir_block(fs, blk, block);
200 if (pctx.errcode) {
201 pctx.str = "ext2fs_write_dir_block";
202 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx);
222 pctx.errcode = ext2fs_write_new_inode(fs, EXT2_ROOT_INO, &inode);
223 if (pctx.errcode) {
224 pctx.str = "ext2fs_write_inode";
225 fix_problem(ctx, PR_3_CREATE_ROOT_ERROR, &pctx);
260 struct problem_context *pctx)
281 fix_problem(ctx, PR_3_NO_DIRINFO, pctx);
294 pctx->ino = ino;
295 if (fix_problem(ctx, PR_3_UNCONNECTED_DIR, pctx)) {
296 if (e2fsck_reconnect_file(ctx, pctx->ino))
299 fix_dotdot(ctx, pctx->ino,
320 pctx->errcode = ext2fs_allocate_inode_bitmap(fs, _("inode loop detection bitmap"), &inode_loop_detect);
321 if (pctx->errcode) {
322 pctx->num = 1;
324 PR_3_ALLOCATE_IBITMAP_ERROR, pctx);
337 pctx->ino = dir;
338 if (e2fsck_dir_info_get_dotdot(ctx, dir, &pctx->ino2) ||
339 e2fsck_dir_info_get_parent(ctx, dir, &pctx->dir)) {
340 fix_problem(ctx, PR_3_NO_DIRINFO, pctx);
343 if (pctx->ino2 != pctx->dir) {
344 if (fix_problem(ctx, PR_3_BAD_DOT_DOT, pctx))
345 fix_dotdot(ctx, dir, pctx->dir);
363 struct problem_context pctx;
368 clear_problem_context(&pctx);
383 pctx.ino = ino;
384 if (!fix_problem(ctx, PR_3_LPF_NOTDIR, &pctx))
388 pctx.errcode = ext2fs_unlink(fs, EXT2_ROOT_INO, name, ino, 0);
389 if (pctx.errcode) {
390 pctx.str = "ext2fs_unlink";
391 fix_problem(ctx, PR_3_CREATE_LPF_ERROR, &pctx);
397 pctx.errcode = retval;
398 fix_problem(ctx, PR_3_ERR_FIND_LPF, &pctx);
414 pctx.errcode = retval;
415 fix_problem(ctx, PR_3_ERR_LPF_NEW_BLOCK, &pctx);
427 pctx.errcode = retval;
428 fix_problem(ctx, PR_3_ERR_LPF_NEW_INODE, &pctx);
440 pctx.errcode = retval;
441 fix_problem(ctx, PR_3_ERR_LPF_NEW_DIR_BLOCK, &pctx);
448 pctx.errcode = retval;
449 fix_problem(ctx, PR_3_ERR_LPF_WRITE_BLOCK, &pctx);
467 pctx.errcode = ext2fs_write_new_inode(fs, ino, &inode);
468 if (pctx.errcode) {
469 pctx.str = "ext2fs_write_inode";
470 fix_problem(ctx, PR_3_CREATE_LPF_ERROR, &pctx);
476 pctx.errcode = ext2fs_link(fs, EXT2_ROOT_INO, name, ino, EXT2_FT_DIR);
477 if (pctx.errcode) {
478 pctx.str = "ext2fs_link";
479 fix_problem(ctx, PR_3_CREATE_LPF_ERROR, &pctx);
505 struct problem_context pctx;
509 clear_problem_context(&pctx);
510 pctx.ino = ino;
517 fix_problem(ctx, PR_3_NO_LPF, &pctx);
526 if (!fix_problem(ctx, PR_3_EXPAND_LF_DIR, &pctx))
531 pctx.errcode = retval;
532 fix_problem(ctx, PR_3_CANT_EXPAND_LPF, &pctx);
539 pctx.errcode = retval;
540 fix_problem(ctx, PR_3_CANT_RECONNECT, &pctx);
608 struct problem_context pctx;
615 clear_problem_context(&pctx);
619 pctx.errcode = retval;
620 fix_problem(fp->ctx, PR_3_ADJUST_INODE, &pctx);
624 pctx.errcode = retval;
625 fix_problem(fp->ctx, PR_3_ADJUST_INODE, &pctx);
644 struct problem_context pctx;
655 clear_problem_context(&pctx);
656 pctx.ino = ino;
660 pctx.errcode = retval;
662 PR_3_FIX_PARENT_NOFIND, &pctx);
667 fix_problem(ctx, PR_3_NO_DIRINFO, &pctx);