Home | History | Annotate | Download | only in ext2fs

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);
405 errcode_t ext2fs_get_next_inode_full(ext2_inode_scan scan, ext2_ino_t *ino,
426 *ino = 0;
509 *ino = scan->current_inode;
513 errcode_t ext2fs_get_next_inode(ext2_inode_scan scan, ext2_ino_t *ino,
516 return ext2fs_get_next_inode_full(scan, ino, inode,
523 errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino,
536 retval = (fs->read_inode)(fs, ino, inode);
540 if ((ino == 0) || (ino > fs->super->s_inodes_count))
552 if (fs->icache->cache[i].ino == ino) {
561 block_nr += (ino - 1) / inodes_per_block;
562 offset = ((ino - 1) % inodes_per_block) *
566 group = (ino - 1) / EXT2_INODES_PER_GROUP(fs->super);
569 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(fs->super)) *
616 fs->icache->cache[fs->icache->cache_last].ino = ino;
622 errcode_t ext2fs_read_inode(ext2_filsys fs, ext2_ino_t ino,
625 return ext2fs_read_inode_full(fs, ino, inode,
629 ino,
642 retval = (fs->write_inode)(fs, ino, inode);
650 if (fs->icache->cache[i].ino == ino) {
664 if ((ino == 0) || (ino > fs->super->s_inodes_count))
687 group = (ino - 1) / EXT2_INODES_PER_GROUP(fs->super);
688 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(fs->super)) *
740 errcode_t ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino,
743 return ext2fs_write_inode_full(fs, ino, inode,
751 errcode_t ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino,
768 return ext2fs_write_inode_full(fs, ino, inode,
784 retval = ext2fs_write_inode_full(fs, ino, buf, size);
790 errcode_t ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks)
798 if (ino > fs->super->s_inodes_count)
802 if (!(*fs->get_blocks)(fs, ino, blocks))
805 retval = ext2fs_read_inode(fs, ino, &inode);
813 errcode_t ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino)
820 if (ino > fs->super->s_inodes_count)
824 retval = (fs->check_directory)(fs, ino);
828 retval = ext2fs_read_inode(fs, ino, &inode);