Lines Matching refs:ino
69 static void mark_inode_bad(e2fsck_t ctx, ino_t ino);
80 ext2_ino_t ino;
96 ext2_ino_t ino;
167 int e2fsck_pass1_check_symlink(ext2_filsys fs, ext2_ino_t ino,
184 if (ext2fs_extent_open2(fs, ino, inode, &handle))
248 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1");
267 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1");
346 e2fsck_write_inode_full(ctx, pctx->ino, pctx->inode,
364 printf("inode #%u, i_extra_size %d\n", pctx->ino,
379 e2fsck_write_inode_full(ctx, pctx->ino, pctx->inode,
443 if (ext2fs_bmap(ctx->fs, pctx->ino, inode, 0, 0, 0,
487 (dirent->inode != pctx->ino) ||
506 e2fsck_write_inode_full(ctx, pctx->ino, inode,
548 ext2_ino_t ino;
700 pctx.errcode = ext2fs_get_next_inode_full(scan, &ino,
708 ext2fs_mark_inode_bitmap(ctx->inode_bb_map, ino);
709 ext2fs_mark_inode_bitmap(ctx->inode_used_map, ino);
717 if (!ino)
719 pctx.ino = ino;
721 ctx->stashed_ino = ino;
724 ino, inode->i_links_count);
749 (inode->i_links_count || (ino == EXT2_BAD_INO) ||
750 (ino == EXT2_ROOT_INO) || (ino == EXT2_JOURNAL_INO))) {
759 e2fsck_clear_inode(ctx, ino, inode, 0, "pass1");
760 if (ino == EXT2_BAD_INO)
762 ino);
776 (inode->i_links_count || (ino == EXT2_BAD_INO) ||
777 (ino == EXT2_ROOT_INO) || (ino == EXT2_JOURNAL_INO)) &&
798 e2fsck_write_inode(ctx, ino, inode, "pass1");
802 if (ino == EXT2_BAD_INO) {
813 pb.ino = EXT2_BAD_INO;
822 pctx.errcode = ext2fs_block_iterate2(fs, ino, 0,
835 ext2fs_mark_inode_bitmap(ctx->inode_used_map, ino);
838 } else if (ino == EXT2_ROOT_INO) {
860 e2fsck_write_inode(ctx, ino, inode,
864 } else if (ino == EXT2_JOURNAL_INO) {
865 ext2fs_mark_inode_bitmap(ctx->inode_used_map, ino);
871 e2fsck_write_inode(ctx, ino, inode,
883 ino, 0);
884 e2fsck_write_inode_full(ctx, ino, inode,
887 } else if (ino < EXT2_FIRST_INODE(fs->super)) {
890 ext2fs_mark_inode_bitmap(ctx->inode_used_map, ino);
891 if (ino == EXT2_BOOT_LOADER_INO) {
894 } else if (ino == EXT2_RESIZE_INO) {
905 e2fsck_write_inode(ctx, ino, inode,
934 e2fsck_write_inode(ctx, ino, inode,
948 e2fsck_write_inode(ctx, ino, inode,
967 e2fsck_write_inode(ctx, ino, inode, "pass1");
971 ext2fs_mark_inode_bitmap(ctx->inode_used_map, ino);
983 mark_inode_bad(ctx, ino);
987 mark_inode_bad(ctx, ino);
992 mark_inode_bad(ctx, ino);
998 ino);
1002 e2fsck_write_inode(ctx, ino,
1020 e2fsck_write_inode(ctx, ino, inode, "pass1");
1024 ext2fs_mark_inode_bitmap(ctx->inode_dir_map, ino);
1025 e2fsck_add_dir_info(ctx, ino, 0);
1028 ext2fs_mark_inode_bitmap(ctx->inode_reg_map, ino);
1041 e2fsck_pass1_check_symlink(fs, ino, inode,
1062 mark_inode_bad(ctx, ino);
1076 inodes_to_process[process_inode_count].ino = ino;
1225 pctx.ino = ctx->stashed_ino = inodes_to_process[i].ino;
1228 printf("%u ", pctx.ino);
1231 pctx.ino);
1259 ret = ib_a->ino - ib_b->ino;
1266 static void mark_inode_bad(e2fsck_t ctx, ino_t ino)
1283 ext2fs_mark_inode_bitmap(ctx->inode_bad_map, ino);
1413 ext2_ino_t ino = pctx->ino;
1436 mark_inode_bad(ctx, ino);
1466 printf("Inode %u has EA block %u\n", ino, blk);
1586 e2fsck_write_inode(ctx, ino, inode, "check_ext_attr");
1592 ext2_ino_t ino, struct ext2_inode *inode,
1606 pctx->errcode = ext2fs_bmap(fs, ino, inode, 0, 0, 0, &blk);
1648 void e2fsck_clear_inode(e2fsck_t ctx, ext2_ino_t ino,
1654 ext2fs_icount_store(ctx->inode_link_info, ino, 0);
1657 ext2fs_unmark_inode_bitmap(ctx->inode_dir_map, ino);
1658 ext2fs_unmark_inode_bitmap(ctx->inode_used_map, ino);
1660 ext2fs_unmark_inode_bitmap(ctx->inode_reg_map, ino);
1662 ext2fs_unmark_inode_bitmap(ctx->inode_bad_map, ino);
1670 e2fsck_write_inode(ctx, ino, inode, source);
1771 (unsigned long) pctx->ino, type,
1781 pb->ino, 0,
1795 pctx->errcode = ext2fs_add_dir_block(ctx->fs->dblist, pctx->ino, blk, blockcnt);
1828 ext2_ino_t ino = pctx->ino;
1831 pctx->errcode = ext2fs_extent_open2(fs, ino, inode, &ehandle);
1834 e2fsck_clear_inode(ctx, ino, inode, 0,
1852 e2fsck_clear_inode(ctx, ino, inode, E2F_FLAG_RESTART,
1877 ext2_ino_t ino = pctx->ino;
1884 pb.ino = ino;
1899 pctx->ino = ino;
1927 pctx->errcode = ext2fs_block_iterate2(fs, ino,
1946 e2fsck_clear_inode(ctx, ino, inode, E2F_FLAG_RESTART,
1952 if (handle_htree(ctx, pctx, ino, inode, block_buf)) {
1957 e2fsck_add_dx_dir(ctx, ino, pb.last_block+1);
1964 e2fsck_clear_inode(ctx, ino, inode, 0, "check_blocks");
1976 ino, inode->i_size, pb.last_block, inode->i_blocks,
2056 ext2fs_u32_list_add(ctx->dirs_to_hash, ino);
2060 e2fsck_write_inode(ctx, ino, inode, "check_blocks");
2162 printf("Process_block, inode %lu, block %u, #%d\n", p->ino, blk,
2171 if (!HOLE_BLKADDR(p->previous_block) && p->ino != EXT2_RESIZE_INO) {
2183 (unsigned long) pctx->ino, type,
2227 if (p->ino == EXT2_RESIZE_INO) {
2246 p->ino, 0,
2254 pctx->errcode = ext2fs_add_dir_block(fs->dblist, p->ino,
2295 pctx->ino = EXT2_BAD_INO;
2634 static errcode_t pass1_get_blocks(ext2_filsys fs, ext2_ino_t ino,
2640 if ((ino != ctx->stashed_ino) || !ctx->stashed_inode)
2648 static errcode_t pass1_read_inode(ext2_filsys fs, ext2_ino_t ino,
2653 if ((ino != ctx->stashed_ino) || !ctx->stashed_inode)
2659 static errcode_t pass1_write_inode(ext2_filsys fs, ext2_ino_t ino,
2664 if ((ino == ctx->stashed_ino) && ctx->stashed_inode &&
2670 static errcode_t pass1_check_directory(ext2_filsys fs, ext2_ino_t ino)
2674 if ((ino != ctx->stashed_ino) || !ctx->stashed_inode)