Lines Matching refs:ino
68 fs->icache->cache[i].ino = 0;
111 errcode_t (*save_get_blocks)(ext2_filsys f, ext2_ino_t ino, blk_t *blocks);
404 errcode_t ext2fs_get_next_inode_full(ext2_inode_scan scan, ext2_ino_t *ino,
425 *ino = 0;
508 *ino = scan->current_inode;
512 errcode_t ext2fs_get_next_inode(ext2_inode_scan scan, ext2_ino_t *ino,
515 return ext2fs_get_next_inode_full(scan, ino, inode,
522 errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino,
538 retval = (fs->read_inode)(fs, ino, inode);
542 if ((ino == 0) || (ino > fs->super->s_inodes_count))
554 if (fs->icache->cache[i].ino == ino) {
563 block_nr += (ino - 1) / inodes_per_block;
564 offset = ((ino - 1) % inodes_per_block) *
568 group = (ino - 1) / EXT2_INODES_PER_GROUP(fs->super);
571 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(fs->super)) *
618 fs->icache->cache[fs->icache->cache_last].ino = ino;
624 ino,
627 return ext2fs_read_inode_full(fs, ino, inode,
631 errcode_t ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino,
645 retval = (fs->write_inode)(fs, ino, inode);
653 if (fs->icache->cache[i].ino == ino) {
667 if ((ino == 0) || (ino > fs->super->s_inodes_count))
692 group = (ino - 1) / EXT2_INODES_PER_GROUP(fs->super);
693 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(fs->super)) *
745 errcode_t ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino,
748 return ext2fs_write_inode_full(fs, ino, inode,
756 errcode_t ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino,
773 return ext2fs_write_inode_full(fs, ino, inode,
789 retval = ext2fs_write_inode_full(fs, ino, buf, size);
795 errcode_t ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks)
803 if (ino > fs->super->s_inodes_count)
807 if (!(*fs->get_blocks)(fs, ino, blocks))
810 retval = ext2fs_read_inode(fs, ino, &inode);
818 errcode_t ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino)
825 if (ino > fs->super->s_inodes_count)
829 retval = (fs->check_directory)(fs, ino);
833 retval = ext2fs_read_inode(fs, ino, &inode);