Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

213 	errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
214 errcode_t (*check_directory)(ext2_filsys fs, ext2_ino_t ino);
215 errcode_t (*write_bitmaps)(ext2_filsys fs);
216 errcode_t (*read_inode)(ext2_filsys fs, ext2_ino_t ino,
218 errcode_t (*write_inode)(ext2_filsys fs, ext2_ino_t ino,
246 errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
248 void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
563 extern errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, int mode,
565 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal,
567 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start,
571 extern errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
573 extern void ext2fs_set_alloc_block_callback(ext2_filsys fs,
574 errcode_t (*func)(ext2_filsys fs,
577 errcode_t (**old)(ext2_filsys fs,
582 extern int ext2fs_reserve_super_and_bgd(ext2_filsys fs,
585 extern void ext2fs_set_block_alloc_stats_callback(ext2_filsys fs,
586 void (*func)(ext2_filsys fs,
589 void (**old)(ext2_filsys fs,
594 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_t ino, int inuse);
595 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino,
597 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse);
600 extern errcode_t ext2fs_allocate_tables(ext2_filsys fs);
601 extern errcode_t ext2fs_allocate_group_table(ext2_filsys fs, dgrp_t group,
647 extern errcode_t ext2fs_update_bb_inode(ext2_filsys fs,
655 extern errcode_t ext2fs_write_inode_bitmap(ext2_filsys fs);
656 extern errcode_t ext2fs_write_block_bitmap (ext2_filsys fs);
657 extern errcode_t ext2fs_read_inode_bitmap (ext2_filsys fs);
658 extern errcode_t ext2fs_read_block_bitmap(ext2_filsys fs);
659 extern errcode_t ext2fs_allocate_block_bitmap(ext2_filsys fs,
662 extern errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs,
671 extern errcode_t ext2fs_read_bitmaps(ext2_filsys fs);
672 extern errcode_t ext2fs_write_bitmaps(ext2_filsys fs);
696 extern errcode_t ext2fs_block_iterate(ext2_filsys fs,
700 int (*func)(ext2_filsys fs,
705 errcode_t ext2fs_block_iterate2(ext2_filsys fs,
709 int (*func)(ext2_filsys fs,
718 extern errcode_t ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino,
722 extern errcode_t ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino,
729 extern errcode_t ext2fs_move_blocks(ext2_filsys fs,
736 extern errcode_t ext2fs_check_desc(ext2_filsys fs);
739 extern errcode_t ext2fs_close(ext2_filsys fs);
740 extern errcode_t ext2fs_flush(ext2_filsys fs);
741 extern int ext2fs_bg_has_super(ext2_filsys fs, int group_block);
742 extern int ext2fs_super_and_bgd_loc(ext2_filsys fs,
748 extern void ext2fs_update_dynamic_rev(ext2_filsys fs);
751 extern void ext2fs_group_desc_csum_set(ext2_filsys fs, dgrp_t group);
752 extern int ext2fs_group_desc_csum_verify(ext2_filsys fs, dgrp_t group);
753 extern errcode_t ext2fs_set_gdt_csum(ext2_filsys fs);
757 extern errcode_t ext2fs_get_num_dirs(ext2_filsys fs, ext2_ino_t *ret_num_dirs);
758 extern errcode_t ext2fs_init_dblist(ext2_filsys fs, ext2_dblist *ret_dblist);
765 int (*func)(ext2_filsys fs, struct ext2_db_entry *db_info,
792 extern errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block,
794 extern errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block,
796 extern errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block,
798 extern errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block,
809 extern errcode_t ext2fs_get_rec_len(ext2_filsys fs,
812 extern errcode_t ext2fs_set_rec_len(ext2_filsys fs,
815 extern errcode_t ext2fs_dir_iterate(ext2_filsys fs,
825 extern errcode_t ext2fs_dir_iterate2(ext2_filsys fs,
842 extern errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir);
847 extern errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf);
848 extern errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block,
850 extern errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk,
856 extern errcode_t ext2fs_extent_open(ext2_filsys fs, ext2_ino_t ino,
858 extern errcode_t ext2fs_extent_open2(ext2_filsys fs, ext2_ino_t ino,
878 extern errcode_t ext2fs_file_open2(ext2_filsys fs, ext2_ino_t ino,
881 extern errcode_t ext2fs_file_open(ext2_filsys fs, ext2_ino_t ino,
905 extern void ext2fs_free(ext2_filsys fs);
912 extern errcode_t ext2fs_make_generic_bitmap(errcode_t magic, ext2_filsys fs,
958 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode,
960 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode,
962 errcode_t ext2fs_iblk_set(ext2_filsys fs, struct ext2_inode *inode, blk64_t b);
965 extern errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags);
966 extern errcode_t ext2fs_image_inode_read(ext2_filsys fs, int fd, int flags);
967 extern errcode_t ext2fs_image_super_write(ext2_filsys fs, int fd, int flags);
968 extern errcode_t ext2fs_image_super_read(ext2_filsys fs, int fd, int flags);
969 extern errcode_t ext2fs_image_bitmap_write(ext2_filsys fs, int fd, int flags);
970 extern errcode_t ext2fs_image_bitmap_read(ext2_filsys fs, int fd, int flags);
973 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf);
974 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf);
983 extern errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir,
985 extern errcode_t ext2fs_create_icount2(ext2_filsys fs, int flags,
988 extern errcode_t ext2fs_create_icount(ext2_filsys fs, int flags,
1003 extern errcode_t ext2fs_flush_icache(ext2_filsys fs);
1008 extern errcode_t ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks,
1017 errcode_t (*done_group)(ext2_filsys fs,
1024 extern errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino,
1027 extern errcode_t ext2fs_read_inode (ext2_filsys fs, ext2_ino_t ino,
1029 extern errcode_t ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino,
1032 extern errcode_t ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino,
1034 extern errcode_t ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino,
1036 extern errcode_t ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
1037 extern errcode_t ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino);
1041 extern errcode_t ext2fs_inode_io_intern(ext2_filsys fs, ext2_ino_t ino,
1043 extern errcode_t ext2fs_inode_io_intern2(ext2_filsys fs, ext2_ino_t ino,
1053 extern errcode_t ext2fs_lookup(ext2_filsys fs, ext2_ino_t dir, const char *name,
1055 extern errcode_t ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
1057 errcode_t ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
1059 extern errcode_t ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
1066 extern errcode_t ext2fs_new_dir_block(ext2_filsys fs, ext2_ino_t dir_ino,
1070 extern errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum,
1074 extern errcode_t ext2fs_zero_blocks(ext2_filsys fs, blk_t blk, int num,
1076 extern errcode_t ext2fs_create_journal_superblock(ext2_filsys fs,
1079 extern errcode_t ext2fs_add_journal_device(ext2_filsys fs,
1081 extern errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t size,
1093 extern blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block,
1095 errcode_t ext2fs_get_data_io(ext2_filsys fs, io_channel *old_io);
1096 errcode_t ext2fs_set_data_io(ext2_filsys fs, io_channel new_io);
1097 errcode_t ext2fs_rewrite_to_io(ext2_filsys fs, io_channel new_io);
1100 extern errcode_t ext2fs_get_pathname(ext2_filsys fs, ext2_ino_t dir, ext2_ino_t ino,
1104 errcode_t ext2fs_link(ext2_filsys fs, ext2_ino_t dir, const char *name,
1106 errcode_t ext2fs_unlink(ext2_filsys fs, ext2_ino_t dir, const char *name,
1110 extern errcode_t ext2fs_read_bb_inode(ext2_filsys fs,
1114 extern errcode_t ext2fs_read_bb_FILE2(ext2_filsys fs, FILE *f,
1117 void (*invalid)(ext2_filsys fs,
1121 extern errcode_t ext2fs_read_bb_FILE(ext2_filsys fs, FILE *f,
1123 void (*invalid)(ext2_filsys fs,
1127 extern errcode_t ext2fs_create_resize_inode(ext2_filsys fs);
1138 extern void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
1141 extern void ext2fs_swap_inode(ext2_filsys fs,struct ext2_inode *t,
1165 extern void ext2fs_mark_super_dirty(ext2_filsys fs);
1166 extern void ext2fs_mark_changed(ext2_filsys fs);
1167 extern int ext2fs_test_changed(ext2_filsys fs);
1168 extern void ext2fs_mark_valid(ext2_filsys fs);
1169 extern void ext2fs_unmark_valid(ext2_filsys fs);
1170 extern int ext2fs_test_valid(ext2_filsys fs);
1171 extern void ext2fs_mark_ib_dirty(ext2_filsys fs);
1172 extern void ext2fs_mark_bb_dirty(ext2_filsys fs);
1173 extern int ext2fs_test_ib_dirty(ext2_filsys fs);
1174 extern int ext2fs_test_bb_dirty(ext2_filsys fs);
1175 extern int ext2fs_group_of_blk(ext2_filsys fs, blk_t blk);
1176 extern int ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino);
1177 extern blk_t ext2fs_group_first_block(ext2_filsys fs, dgrp_t group);
1178 extern blk_t ext2fs_group_last_block(ext2_filsys fs, dgrp_t group);
1179 extern blk_t ext2fs_inode_data_blocks(ext2_filsys fs,
1286 _INLINE_ void ext2fs_mark_super_dirty(ext2_filsys fs)
1288 fs->flags |= EXT2_FLAG_DIRTY | EXT2_FLAG_CHANGED;
1294 _INLINE_ void ext2fs_mark_changed(ext2_filsys fs)
1296 fs->flags |= EXT2_FLAG_CHANGED;
1302 _INLINE_ int ext2fs_test_changed(ext2_filsys fs)
1304 return (fs->flags & EXT2_FLAG_CHANGED);
1310 _INLINE_ void ext2fs_mark_valid(ext2_filsys fs)
1312 fs->flags |= EXT2_FLAG_VALID;
1318 _INLINE_ void ext2fs_unmark_valid(ext2_filsys fs)
1320 fs->flags &= ~EXT2_FLAG_VALID;
1326 _INLINE_ int ext2fs_test_valid(ext2_filsys fs)
1328 return (fs->flags & EXT2_FLAG_VALID);
1334 _INLINE_ void ext2fs_mark_ib_dirty(ext2_filsys fs)
1336 fs->flags |= EXT2_FLAG_IB_DIRTY | EXT2_FLAG_CHANGED;
1342 _INLINE_ void ext2fs_mark_bb_dirty(ext2_filsys fs)
1344 fs->flags |= EXT2_FLAG_BB_DIRTY | EXT2_FLAG_CHANGED;
1350 _INLINE_ int ext2fs_test_ib_dirty(ext2_filsys fs)
1352 return (fs->flags & EXT2_FLAG_IB_DIRTY);
1358 _INLINE_ int ext2fs_test_bb_dirty(ext2_filsys fs)
1360 return (fs->flags & EXT2_FLAG_BB_DIRTY);
1366 _INLINE_ int ext2fs_group_of_blk(ext2_filsys fs, blk_t blk)
1368 return (blk - fs->super->s_first_data_block) /
1369 fs->super->s_blocks_per_group;
1375 _INLINE_ int ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino)
1377 return (ino - 1) / fs->super->s_inodes_per_group;
1383 _INLINE_ blk_t ext2fs_group_first_block(ext2_filsys fs, dgrp_t group)
1385 return fs->super->s_first_data_block +
1386 (group * fs->super->s_blocks_per_group);
1392 _INLINE_ blk_t ext2fs_group_last_block(ext2_filsys fs, dgrp_t group)
1394 return (group == fs->group_desc_count - 1 ?
1395 fs->super->s_blocks_count - 1 :
1396 ext2fs_group_first_block(fs, group) +
1397 (fs->super->s_blocks_per_group - 1));
1400 _INLINE_ blk_t ext2fs_inode_data_blocks(ext2_filsys fs,
1404 (inode->i_file_acl ? fs->blocksize >> 9 : 0);