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
267 * blocks in the inode table.
279 * If the inode table is missing, then obviously there are no
328 * read in more blocks from the current blockgroup's inode table.
355 * Do inode bad block processing, if necessary.
388 * that part of the inode table was used at one point; we want all
389 * zeros, which means that the inode table is pristine.)
406 struct ext2_inode *inode, int bufsize)
452 * Have we run out of space in the inode buffer? If so, we
464 * XXX test Need check for used inode somehow.
480 memset(inode, 0, bufsize);
482 (struct ext2_inode_large *) inode,
486 *inode = *((struct ext2_inode *) scan->temp_buffer);
493 memset(inode, 0, bufsize);
495 (struct ext2_inode_large *) inode,
499 memcpy(inode, scan->ptr, bufsize);
514 struct ext2_inode *inode)
516 return ext2fs_get_next_inode_full(scan, ino, inode,
521 * Functions to read and write a single inode.
524 struct ext2_inode * inode, int bufsize)
536 retval = (fs->read_inode)(fs, ino, inode);
542 /* Create inode cache if not present */
548 /* Check to see if it's in the inode cache */
550 /* only old good inode can be retrieved from the cache */
553 *inode = fs->icache->cache[i].inode;
584 ptr = (char *) inode;
608 ext2fs_swap_inode_full(fs, (struct ext2_inode_large *) inode,
609 (struct ext2_inode_large *) inode,
613 /* Update the inode cache */
617 fs->icache->cache[fs->icache->cache_last].inode = *inode;
623 struct ext2_inode * inode)
625 return ext2fs_read_inode_full(fs, ino, inode,
630 struct ext2_inode * inode, int bufsize)
642 retval = (fs->write_inode)(fs, ino, inode);
647 /* Check to see if the inode cache needs to be updated */
651 fs->icache->cache[i].inode = *inode;
681 (struct ext2_inode_large *) inode,
684 memcpy(w_inode, inode, bufsize);
741 struct ext2_inode *inode)
743 return ext2fs_write_inode_full(fs, ino, inode,
748 * This function should be called when writing a new inode. It makes
752 struct ext2_inode *inode)
760 if (!inode->i_ctime)
761 inode->i_ctime = t;
762 if (!inode->i_mtime)
763 inode->i_mtime = t;
764 if (!inode->i_atime)
765 inode->i_atime = t;
768 return ext2fs_write_inode_full(fs, ino, inode,
776 *buf = *inode;
792 struct ext2_inode inode;
805 retval = ext2fs_read_inode(fs, ino, &inode);
809 blocks[i] = inode.i_block[i];
815 struct ext2_inode inode;
828 retval = ext2fs_read_inode(fs, ino, &inode);
831 if (!LINUX_S_ISDIR(inode.i_mode))