Home | History | Annotate | Download | only in e2fsck

Lines Matching refs:ino

88 static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
90 static int clone_file(e2fsck_t ctx, ext2_ino_t ino,
118 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk,
139 ino_el->inode = ino;
144 n = dict_lookup(&ino_dict, INT_TO_VOIDPTR(ino));
150 if (ino == EXT2_ROOT_INO) {
159 dict_alloc_insert(&ino_dict, INT_TO_VOIDPTR(ino), di);
258 ext2_ino_t ino;
267 ext2_ino_t ino;
289 pctx.errcode = ext2fs_get_next_inode(scan, &ino, &inode);
297 if (!ino)
299 pctx.ino = ctx->stashed_ino = ino;
300 if ((ino != EXT2_BAD_INO) &&
301 !ext2fs_test_inode_bitmap(ctx->inode_used_map, ino))
304 pb.ino = ino;
309 (ino == EXT2_BAD_INO))
310 pctx.errcode = ext2fs_block_iterate2(fs, ino,
318 if (ino >= EXT2_FIRST_INODE(fs->super) ||
319 ino == EXT2_ROOT_INO)
348 if (p->ino != EXT2_BAD_INO) {
353 ext2fs_mark_inode_bitmap(inode_dup_map, p->ino);
355 add_dupe(ctx, p->ino, *block_nr, p->inode);
432 ext2_ino_t *shared, ino;
457 ino = (ext2_ino_t)VOIDPTR_TO_INT(dnode_getkey(n));
458 if (ino == EXT2_BAD_INO || ino == EXT2_RESIZE_INO)
486 if (r->inode == ino)
501 pctx.ino = ino;
521 pctx.ino = shared[i];
530 pctx.errcode = clone_file(ctx, ino, p, block_buf);
537 delete_file(ctx, ino, p, block_buf);
591 static void delete_file(e2fsck_t ctx, ext2_ino_t ino,
601 pctx.ino = pb.ino = ino;
606 e2fsck_read_inode(ctx, ino, &inode, "delete_file");
608 pctx.errcode = ext2fs_block_iterate2(fs, ino, BLOCK_FLAG_READ_ONLY,
613 ext2fs_unmark_inode_bitmap(ctx->inode_bad_map, ino);
614 ext2fs_inode_alloc_stats2(fs, ino, -1, LINUX_S_ISDIR(inode.i_mode));
617 e2fsck_read_inode(ctx, ino, &inode, "delete_file");
618 e2fsck_clear_inode(ctx, ino, &inode, 0, "delete_file");
720 static int clone_file(e2fsck_t ctx, ext2_ino_t ino,
741 if (ext2fs_test_inode_bitmap(ctx->inode_dir_map, ino))
742 cs.dir = ino;
744 pctx.ino = ino;
747 pctx.errcode = ext2fs_block_iterate2(fs, ino, 0, block_buf,
762 e2fsck_read_inode(ctx, ino, &dp->inode, "clone file EA");
767 e2fsck_write_inode(ctx, ino, &dp->inode, "clone file EA");
783 if (ino_el->inode == ino)