Lines Matching refs:inode

2  * inode.c --- utility routines to read and write inodes
116 * If fs->badblocks isn't set, then set it --- since the inode
266 * blocks in the inode table.
278 * If the inode table is missing, then obviously there are no
327 * read in more blocks from the current blockgroup's inode table.
354 * Do inode bad block processing, if necessary.
387 * that part of the inode table was used at one point; we want all
388 * zeros, which means that the inode table is pristine.)
405 struct ext2_inode *inode, int bufsize)
451 * Have we run out of space in the inode buffer? If so, we
463 * XXX test Need check for used inode somehow.
479 memset(inode, 0, bufsize);
481 (struct ext2_inode_large *) inode,
485 *inode = *((struct ext2_inode *) scan->temp_buffer);
492 memset(inode, 0, bufsize);
494 (struct ext2_inode_large *) inode,
498 memcpy(inode, scan->ptr, bufsize);
513 struct ext2_inode *inode)
515 return ext2fs_get_next_inode_full(scan, ino, inode,
520 * Functions to read and write a single inode.
523 struct ext2_inode * inode, int bufsize)
538 retval = (fs->read_inode)(fs, ino, inode);
544 /* Create inode cache if not present */
550 /* Check to see if it's in the inode cache */
552 /* only old good inode can be retrieved from the cache */
555 *inode = fs->icache->cache[i].inode;
586 ptr = (char *) inode;
610 ext2fs_swap_inode_full(fs, (struct ext2_inode_large *) inode,
611 (struct ext2_inode_large *) inode,
615 /* Update the inode cache */
619 fs->icache->cache[fs->icache->cache_last].inode = *inode;
625 struct ext2_inode * inode)
627 return ext2fs_read_inode_full(fs, ino, inode,
632 struct ext2_inode * inode, int bufsize)
645 retval = (fs->write_inode)(fs, ino, inode);
650 /* Check to see if the inode cache needs to be updated */
654 fs->icache->cache[i].inode = *inode;
686 (struct ext2_inode_large *) inode,
689 memcpy(w_inode, inode, bufsize);
746 struct ext2_inode *inode)
748 return ext2fs_write_inode_full(fs, ino, inode,
753 * This function should be called when writing a new inode. It makes
757 struct ext2_inode *inode)
765 if (!inode->i_ctime)
766 inode->i_ctime = t;
767 if (!inode->i_mtime)
768 inode->i_mtime = t;
769 if (!inode->i_atime)
770 inode->i_atime = t;
773 return ext2fs_write_inode_full(fs, ino, inode,
781 *buf = *inode;
797 struct ext2_inode inode;
810 retval = ext2fs_read_inode(fs, ino, &inode);
814 blocks[i] = inode.i_block[i];
820 struct ext2_inode inode;
833 retval = ext2fs_read_inode(fs, ino, &inode);
836 if (!LINUX_S_ISDIR(inode.i_mode))