Home | History | Annotate | Download | only in e2fsck

Lines Matching defs: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);
227 struct inode *j_inode = NULL;
266 "journal inode");
448 /* The journal inode is bogus, remove and force full fsck */
506 /* If we don't even have JFS_MAGIC, we probably have a wrong inode */
738 pctx.str = "inode";
745 * journal stored on a reserved inode.
878 * This function will move the journal inode from a visible file in
879 * the filesystem directory hierarchy to the reserved inode if necessary.
888 struct ext2_inode inode;
907 * Read in the journal inode
909 if (ext2fs_read_inode(fs, sb->s_journal_inum, &inode) != 0)
913 * If it's necessary to backup the journal inode, do so.
917 memcmp(inode.i_block, sb->s_jnl_blocks, EXT2_N_BLOCKS*4))) {
919 memcpy(sb->s_jnl_blocks, inode.i_block,
921 sb->s_jnl_blocks[16] = inode.i_size;
929 * If the journal is already the hidden inode, then do nothing
935 * The journal inode had better have only one link and not be readable.
937 if (inode.i_links_count != 1)
949 * If we can't find the name of the journal inode, then do
961 /* We need the inode bitmap to be loaded */
972 * journal inode. Errors at this point mean we need to force
977 if ((retval = ext2fs_write_inode(fs, EXT2_JOURNAL_INO, &inode)) != 0)
982 inode.i_links_count = 0;
983 inode.i_dtime = ctx->now;
984 if ((retval = ext2fs_write_inode(fs, ino, &inode)) != 0)