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");
455 /* The journal inode is bogus, remove and force full fsck */
513 /* If we don't even have JFS_MAGIC, we probably have a wrong inode */
745 pctx.str = "inode";
752 * journal stored on a reserved inode.
914 * This function will move the journal inode from a visible file in
915 * the filesystem directory hierarchy to the reserved inode if necessary.
924 struct ext2_inode inode;
943 * Read in the journal inode
945 if (ext2fs_read_inode(fs, sb->s_journal_inum, &inode) != 0)
949 * If it's necessary to backup the journal inode, do so.
953 memcmp(inode.i_block, sb->s_jnl_blocks, EXT2_N_BLOCKS*4))) {
955 memcpy(sb->s_jnl_blocks, inode.i_block,
957 sb->s_jnl_blocks[16] = inode.i_size;
965 * If the journal is already the hidden inode, then do nothing
971 * The journal inode had better have only one link and not be readable.
973 if (inode.i_links_count != 1)
985 * If we can't find the name of the journal inode, then do
997 /* We need the inode bitmap to be loaded */
1008 * journal inode. Errors at this point mean we need to force
1013 if ((retval = ext2fs_write_inode(fs, EXT2_JOURNAL_INO, &inode)) != 0)
1018 inode.i_links_count = 0;
1019 inode.i_dtime = ctx->now;
1020 if ((retval = ext2fs_write_inode(fs, ino, &inode)) != 0)