Home | History | Annotate | Download | only in ext2fs

Lines Matching full: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)
535 retval = (fs->read_inode)(fs, ino, inode);
541 /* Create inode cache if not present */
547 /* Check to see if it's in the inode cache */
549 /* only old good inode can be retrieved from the cache */
552 *inode = fs->icache->cache[i].inode;
583 ptr = (char *) inode;
607 ext2fs_swap_inode_full(fs, (struct ext2_inode_large *) inode,
608 (struct ext2_inode_large *) inode,
612 /* Update the inode cache */
616 fs->icache->cache[fs->icache->cache_last].inode = *inode;
622 struct ext2_inode * inode)
624 inode,
629 struct ext2_inode * inode, int bufsize)
641 retval = (fs->write_inode)(fs, ino, inode);
646 /* Check to see if the inode cache needs to be updated */
650 fs->icache->cache[i].inode = *inode;
680 (struct ext2_inode_large *) inode,
683 memcpy(w_inode, inode, bufsize);
740 struct ext2_inode *inode)
742 return ext2fs_write_inode_full(fs, ino, inode,
747 * This function should be called when writing a new inode. It makes
751 struct ext2_inode *inode)
759 if (!inode->i_ctime)
760 inode->i_ctime = t;
761 if (!inode->i_mtime)
762 inode->i_mtime = t;
763 if (!inode->i_atime)
764 inode->i_atime = t;
767 return ext2fs_write_inode_full(fs, ino, inode,
775 *buf = *inode;
791 struct ext2_inode inode;
804 retval = ext2fs_read_inode(fs, ino, &inode);
808 blocks[i] = inode.i_block[i];
814 struct ext2_inode inode;
827 retval = ext2fs_read_inode(fs, ino, &inode);
830 if (!LINUX_S_ISDIR(inode.i_mode))