Home | History | Annotate | Download | only in e2fsck

Lines Matching full:inode

52 	struct inode 	*inode = journal->j_inode;
56 if (!inode) {
61 retval= ext2fs_bmap(inode->i_ctx->fs, inode->i_ino,
62 &inode->i_ext2, NULL, 0, block, &pblk);
233 struct inode *j_inode = NULL;
272 "journal inode");
454 /* The journal inode is bogus, remove and force full fsck */
512 /* If we don't even have JFS_MAGIC, we probably have a wrong inode */
744 pctx.str = "inode";
751 * journal stored on a reserved inode.
902 * This function will move the journal inode from a visible file in
903 * the filesystem directory hierarchy to the reserved inode if necessary.
912 struct ext2_inode inode;
931 * Read in the journal inode
933 if (ext2fs_read_inode(fs, sb->s_journal_inum, &inode) != 0)
937 * If it's necessary to backup the journal inode, do so.
941 memcmp(inode.i_block, sb->s_jnl_blocks, EXT2_N_BLOCKS*4))) {
943 memcpy(sb->s_jnl_blocks, inode.i_block,
945 sb->s_jnl_blocks[16] = inode.i_size;
953 * If the journal is already the hidden inode, then do nothing
959 * The journal inode had better have only one link and not be readable.
961 if (inode.i_links_count != 1)
973 * If we can't find the name of the journal inode, then do
985 /* We need the inode bitmap to be loaded */
996 * journal inode. Errors at this point mean we need to force
1001 if ((retval = ext2fs_write_inode(fs, EXT2_JOURNAL_INO, &inode)) != 0)
1006 inode.i_links_count = 0;
1007 inode.i_dtime = ctx->now;
1008 if ((retval = ext2fs_write_inode(fs, ino, &inode)) != 0)