Lines Matching refs:inode
23 struct ext2_inode inode;
26 /* We need the inode bitmap to be loaded */
30 if (ext2fs_read_inode(fs, from_ino, &inode))
33 inode.i_links_count = 1;
34 inode.i_mode = LINUX_S_IFREG | 0600;
35 inode.i_flags = EXT2_IMMUTABLE_FL;
38 inode.i_flags |= EXT4_EXTENTS_FL;
40 ext2fs_write_new_inode(fs, to_ino, &inode);
41 /* unlink the old inode */
45 /* Clear out the original inode in the inode-table block. */
46 memset(&inode, 0, sizeof(struct ext2_inode));
47 ext2fs_write_inode(fs, from_ino, &inode);