Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:ext2_filsys

103 typedef struct struct_ext2_filsys *ext2_filsys;
171 * Flags for the ext2_filsys structure and for ext2fs_open()
225 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
226 errcode_t (*check_directory)(ext2_filsys fs, ext2_ino_t ino);
227 errcode_t (*write_bitmaps)(ext2_filsys fs);
228 errcode_t (*read_inode)(ext2_filsys fs, ext2_ino_t ino,
230 errcode_t (*write_inode)(ext2_filsys fs, ext2_ino_t ino,
261 errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
263 void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
642 extern errcode_t ext2fs_new_inode(ext2_filsys fs, ext2_ino_t dir, int mode,
644 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal,
646 extern errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal,
648 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start,
652 extern errcode_t ext2fs_get_free_blocks2(ext2_filsys fs, blk64_t start,
656 extern errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
658 extern errcode_t ext2fs_alloc_block2(ext2_filsys fs, blk64_t goal,
660 extern void ext2fs_set_alloc_block_callback(ext2_filsys fs,
661 errcode_t (*func)(ext2_filsys fs,
664 errcode_t (**old)(ext2_filsys fs,
669 extern int ext2fs_reserve_super_and_bgd(ext2_filsys fs,
672 extern void ext2fs_set_block_alloc_stats_callback(ext2_filsys fs,
673 void (*func)(ext2_filsys fs,
676 void (**old)(ext2_filsys fs,
681 void ext2fs_inode_alloc_stats(ext2_filsys fs, ext2_ino_t ino, int inuse);
682 void ext2fs_inode_alloc_stats2(ext2_filsys fs, ext2_ino_t ino,
684 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse);
685 void ext2fs_block_alloc_stats2(ext2_filsys fs, blk64_t blk, int inuse);
688 extern errcode_t ext2fs_allocate_tables(ext2_filsys fs);
689 extern errcode_t ext2fs_allocate_group_table(ext2_filsys fs, dgrp_t group,
735 extern errcode_t ext2fs_update_bb_inode(ext2_filsys fs,
743 extern errcode_t ext2fs_write_inode_bitmap(ext2_filsys fs);
744 extern errcode_t ext2fs_write_block_bitmap (ext2_filsys fs);
745 extern errcode_t ext2fs_read_inode_bitmap (ext2_filsys fs);
746 extern errcode_t ext2fs_read_block_bitmap(ext2_filsys fs);
747 extern errcode_t ext2fs_allocate_block_bitmap(ext2_filsys fs,
750 extern errcode_t ext2fs_allocate_subcluster_bitmap(ext2_filsys fs,
754 extern errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs,
765 extern errcode_t ext2fs_read_bitmaps(ext2_filsys fs);
766 extern errcode_t ext2fs_write_bitmaps(ext2_filsys fs);
807 extern dgrp_t ext2fs_group_of_blk2(ext2_filsys fs, blk64_t);
808 extern blk64_t ext2fs_group_first_block2(ext2_filsys fs, dgrp_t group);
809 extern blk64_t ext2fs_group_last_block2(ext2_filsys fs, dgrp_t group);
810 extern int ext2fs_group_blocks_count(ext2_filsys fs, dgrp_t group);
811 extern blk64_t ext2fs_inode_data_blocks2(ext2_filsys fs,
813 extern blk64_t ext2fs_inode_i_blocks(ext2_filsys fs,
831 extern struct ext2_group_desc *ext2fs_group_desc(ext2_filsys fs,
834 extern blk64_t ext2fs_block_bitmap_loc(ext2_filsys fs, dgrp_t group);
835 extern void ext2fs_block_bitmap_loc_set(ext2_filsys fs, dgrp_t group,
837 extern blk64_t ext2fs_inode_bitmap_loc(ext2_filsys fs, dgrp_t group);
838 extern void ext2fs_inode_bitmap_loc_set(ext2_filsys fs, dgrp_t group,
840 extern blk64_t ext2fs_inode_table_loc(ext2_filsys fs, dgrp_t group);
841 extern void ext2fs_inode_table_loc_set(ext2_filsys fs, dgrp_t group,
843 extern __u32 ext2fs_bg_free_blocks_count(ext2_filsys fs, dgrp_t group);
844 extern void ext2fs_bg_free_blocks_count_set(ext2_filsys fs, dgrp_t group,
846 extern __u32 ext2fs_bg_free_inodes_count(ext2_filsys fs, dgrp_t group);
847 extern void ext2fs_bg_free_inodes_count_set(ext2_filsys fs, dgrp_t group,
849 extern __u32 ext2fs_bg_used_dirs_count(ext2_filsys fs, dgrp_t group);
850 extern void ext2fs_bg_used_dirs_count_set(ext2_filsys fs, dgrp_t group,
852 extern __u32 ext2fs_bg_itable_unused(ext2_filsys fs, dgrp_t group);
853 extern void ext2fs_bg_itable_unused_set(ext2_filsys fs, dgrp_t group,
855 extern __u16 ext2fs_bg_flags(ext2_filsys fs, dgrp_t group);
856 extern void ext2fs_bg_flags_zap(ext2_filsys fs, dgrp_t group);
857 extern int ext2fs_bg_flags_test(ext2_filsys fs, dgrp_t group, __u16 bg_flag);
858 extern void ext2fs_bg_flags_set(ext2_filsys fs, dgrp_t group, __u16 bg_flags);
859 extern void ext2fs_bg_flags_clear(ext2_filsys fs, dgrp_t group, __u16 bg_flags);
860 extern __u16 ext2fs_bg_checksum(ext2_filsys fs, dgrp_t group);
861 extern void ext2fs_bg_checksum_set(ext2_filsys fs, dgrp_t group, __u16 checksum);
862 extern blk64_t ext2fs_file_acl_block(ext2_filsys fs,
864 extern void ext2fs_file_acl_block_set(ext2_filsys fs,
868 extern errcode_t ext2fs_block_iterate(ext2_filsys fs,
872 int (*func)(ext2_filsys fs,
877 errcode_t ext2fs_block_iterate2(ext2_filsys fs,
881 int (*func)(ext2_filsys fs,
888 errcode_t ext2fs_block_iterate3(ext2_filsys fs,
892 int (*func)(ext2_filsys fs,
901 extern errcode_t ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino,
905 extern errcode_t ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino,
909 errcode_t ext2fs_map_cluster_block(ext2_filsys fs, ext2_ino_t ino,
915 extern errcode_t ext2fs_move_blocks(ext2_filsys fs,
922 extern errcode_t ext2fs_check_desc(ext2_filsys fs);
925 extern errcode_t ext2fs_close(ext2_filsys fs);
926 extern errcode_t ext2fs_close2(ext2_filsys fs, int flags);
927 extern errcode_t ext2fs_flush(ext2_filsys fs);
928 extern errcode_t ext2fs_flush2(ext2_filsys fs, int flags);
929 extern int ext2fs_bg_has_super(ext2_filsys fs, dgrp_t group_block);
930 extern errcode_t ext2fs_super_and_bgd_loc2(ext2_filsys fs,
936 extern int ext2fs_super_and_bgd_loc(ext2_filsys fs,
942 extern void ext2fs_update_dynamic_rev(ext2_filsys fs);
949 extern void ext2fs_group_desc_csum_set(ext2_filsys fs, dgrp_t group);
950 extern int ext2fs_group_desc_csum_verify(ext2_filsys fs, dgrp_t group);
951 extern errcode_t ext2fs_set_gdt_csum(ext2_filsys fs);
952 extern __u16 ext2fs_group_desc_csum(ext2_filsys fs, dgrp_t group);
956 extern errcode_t ext2fs_get_num_dirs(ext2_filsys fs, ext2_ino_t *ret_num_dirs);
957 extern errcode_t ext2fs_init_dblist(ext2_filsys fs, ext2_dblist *ret_dblist);
969 int (*func)(ext2_filsys fs, struct ext2_db_entry *db_info,
973 int (*func)(ext2_filsys fs, struct ext2_db_entry2 *db_info,
1005 extern errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block,
1007 extern errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block,
1009 extern errcode_t ext2fs_read_dir_block3(ext2_filsys fs, blk64_t block,
1011 extern errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block,
1013 ext2_filsys fs, blk_t block,
1015 extern errcode_t ext2fs_write_dir_block3(ext2_filsys fs, blk64_t block,
1026 extern errcode_t ext2fs_get_rec_len(ext2_filsys fs,
1029 extern errcode_t ext2fs_set_rec_len(ext2_filsys fs,
1032 extern errcode_t ext2fs_dir_iterate(ext2_filsys fs,
1042 extern errcode_t ext2fs_dir_iterate2(ext2_filsys fs,
1056 extern errcode_t ext2fs_dup_handle(ext2_filsys src, ext2_filsys *dest);
1059 extern errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir);
1064 extern errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf);
1065 extern errcode_t ext2fs_read_ext_attr2(ext2_filsys fs, blk64_t block,
1067 extern errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block,
1069 extern errcode_t ext2fs_write_ext_attr2(ext2_filsys fs, blk64_t block,
1071 extern errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk,
1074 extern errcode_t ext2fs_adjust_ea_refcount2(ext2_filsys fs, blk64_t blk,
1080 extern errcode_t ext2fs_extent_open(ext2_filsys fs, ext2_ino_t ino,
1082 extern errcode_t ext2fs_extent_open2(ext2_filsys fs, ext2_ino_t ino,
1106 extern errcode_t ext2fs_file_open2(ext2_filsys fs, ext2_ino_t ino,
1109 extern errcode_t ext2fs_file_open(ext2_filsys fs, ext2_ino_t ino,
1111 extern ext2_filsys ext2fs_file_get_fs(ext2_file_t file);
1136 extern void ext2fs_free(ext2_filsys fs);
1143 extern errcode_t ext2fs_make_generic_bitmap(errcode_t magic, ext2_filsys fs,
1187 errcode_t ext2fs_alloc_generic_bmap(ext2_filsys fs, errcode_t magic,
1211 errcode_t ext2fs_convert_subcluster_bitmap(ext2_filsys fs,
1226 errcode_t ext2fs_iblk_add_blocks(ext2_filsys fs, struct ext2_inode *inode,
1228 errcode_t ext2fs_iblk_sub_blocks(ext2_filsys fs, struct ext2_inode *inode,
1230 errcode_t ext2fs_iblk_set(ext2_filsys fs, struct ext2_inode *inode, blk64_t b);
1233 extern errcode_t ext2fs_image_inode_write(ext2_filsys fs, int fd, int flags);
1234 extern errcode_t ext2fs_image_inode_read(ext2_filsys fs, int fd, int flags);
1235 extern errcode_t ext2fs_image_super_write(ext2_filsys fs, int fd, int flags);
1236 extern errcode_t ext2fs_image_super_read(ext2_filsys fs, int fd, int flags);
1237 extern errcode_t ext2fs_image_bitmap_write(ext2_filsys fs, int fd, int flags);
1238 extern errcode_t ext2fs_image_bitmap_read(ext2_filsys fs, int fd, int flags);
1241 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf);
1242 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf);
1247 io_manager manager, ext2_filsys *ret_fs);
1251 extern errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir,
1253 extern errcode_t ext2fs_create_icount2(ext2_filsys fs, int flags,
1256 extern errcode_t ext2fs_create_icount(ext2_filsys fs, int flags,
1276 extern errcode_t ext2fs_flush_icache(ext2_filsys fs);
1281 extern errcode_t ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks,
1290 errcode_t (*done_group)(ext2_filsys fs,
1297 extern errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino,
1300 extern errcode_t ext2fs_read_inode (ext2_filsys fs, ext2_ino_t ino,
1302 extern errcode_t ext2fs_write_inode_full(ext2_filsys fs, ext2_ino_t ino,
1305 extern errcode_t ext2fs_write_inode(ext2_filsys fs, ext2_ino_t ino,
1307 extern errcode_t ext2fs_write_new_inode(ext2_filsys fs, ext2_ino_t ino,
1309 extern errcode_t ext2fs_get_blocks(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
1310 extern errcode_t ext2fs_check_directory(ext2_filsys fs, ext2_ino_t ino);
1314 extern errcode_t ext2fs_inode_io_intern(ext2_filsys fs, ext2_ino_t ino,
1316 extern errcode_t ext2fs_inode_io_intern2(ext2_filsys fs, ext2_ino_t ino,
1330 extern errcode_t ext2fs_punch(ext2_filsys fs, ext2_ino_t ino,
1336 extern errcode_t ext2fs_lookup(ext2_filsys fs, ext2_ino_t dir, const char *name,
1338 extern errcode_t ext2fs_namei(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
1340 errcode_t ext2fs_namei_follow(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
1342 extern errcode_t ext2fs_follow_link(ext2_filsys fs, ext2_ino_t root, ext2_ino_t cwd,
1349 extern errcode_t ext2fs_new_dir_block(ext2_filsys fs, ext2_ino_t dir_ino,
1353 extern errcode_t ext2fs_mkdir(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t inum,
1357 extern errcode_t ext2fs_zero_blocks(ext2_filsys fs, blk_t blk, int num,
1359 extern errcode_t ext2fs_zero_blocks2(ext2_filsys fs, blk64_t blk, int num,
1361 extern errcode_t ext2fs_create_journal_superblock(ext2_filsys fs,
1364 extern errcode_t ext2fs_add_journal_device(ext2_filsys fs,
1365 ext2_filsys journal_dev);
1366 extern errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t num_blocks,
1373 ext2_filsys *ret_fs);
1377 ext2_filsys *ret_fs);
1378 extern blk64_t ext2fs_descriptor_block_loc2(ext2_filsys fs,
1380 extern blk_t ext2fs_descriptor_block_loc(ext2_filsys fs, blk_t group_block,
1382 errcode_t ext2fs_get_data_io(ext2_filsys fs, io_channel *old_io);
1383 errcode_t ext2fs_set_data_io(ext2_filsys fs, io_channel new_io);
1384 errcode_t ext2fs_rewrite_to_io(ext2_filsys fs, io_channel new_io);
1387 extern errcode_t ext2fs_get_pathname(ext2_filsys fs, ext2_ino_t dir, ext2_ino_t ino,
1391 errcode_t ext2fs_link(ext2_filsys fs, ext2_ino_t dir, const char *name,
1393 errcode_t ext2fs_unlink(ext2_filsys fs, ext2_ino_t dir, const char *name,
1397 errcode_t ext2fs_symlink(ext2_filsys fs, ext2_ino_t parent, ext2_ino_t ino,
1401 errcode_t ext2fs_mmp_read(ext2_filsys fs, blk64_t mmp_blk, void *buf);
1402 errcode_t ext2fs_mmp_write(ext2_filsys fs, blk64_t mmp_blk, void *buf);
1403 errcode_t ext2fs_mmp_clear(ext2_filsys fs);
1404 errcode_t ext2fs_mmp_init(ext2_filsys fs);
1405 errcode_t ext2fs_mmp_start(ext2_filsys fs);
1406 errcode_t ext2fs_mmp_update(ext2_filsys fs);
1407 errcode_t ext2fs_mmp_stop(ext2_filsys fs);
1411 extern errcode_t ext2fs_read_bb_inode(ext2_filsys fs,
1415 ext2_filsys fs, FILE *f,
1418 void (*invalid)(ext2_filsys fs,
1422 extern errcode_t ext2fs_read_bb_FILE(ext2_filsys fs, FILE *f,
1424 void (*invalid)(ext2_filsys fs,
1428 extern errcode_t ext2fs_create_resize_inode(ext2_filsys fs);
1439 extern void ext2fs_swap_group_desc2(ext2_filsys, struct ext2_group_desc *gdp);
1440 extern void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
1443 extern void ext2fs_swap_inode(ext2_filsys fs,struct ext2_inode *t,
1454 extern int ext2fs_inode_has_valid_blocks2(ext2_filsys fs,
1479 extern void ext2fs_mark_super_dirty(ext2_filsys fs);
1480 extern void ext2fs_mark_changed(ext2_filsys fs);
1481 extern int ext2fs_test_changed(ext2_filsys fs);
1482 extern void ext2fs_mark_valid(ext2_filsys fs);
1483 extern void ext2fs_unmark_valid(ext2_filsys fs);
1484 extern int ext2fs_test_valid(ext2_filsys fs);
1485 extern void ext2fs_mark_ib_dirty(ext2_filsys fs);
1486 extern void ext2fs_mark_bb_dirty(ext2_filsys fs);
1487 extern int ext2fs_test_ib_dirty(ext2_filsys fs);
1488 extern int ext2fs_test_bb_dirty(ext2_filsys fs);
1489 extern dgrp_t ext2fs_group_of_blk(ext2_filsys fs, blk_t blk);
1490 extern dgrp_t ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino);
1491 extern blk_t ext2fs_group_first_block(ext2_filsys fs, dgrp_t group);
1492 extern blk_t ext2fs_group_last_block(ext2_filsys fs, dgrp_t group);
1493 extern blk_t ext2fs_inode_data_blocks(ext2_filsys fs,
1605 _INLINE_ void ext2fs_mark_super_dirty(ext2_filsys fs)
1613 _INLINE_ void ext2fs_mark_changed(ext2_filsys fs)
1621 _INLINE_ int ext2fs_test_changed(ext2_filsys fs)
1629 _INLINE_ void ext2fs_mark_valid(ext2_filsys fs)
1637 _INLINE_ void ext2fs_unmark_valid(ext2_filsys fs)
1645 _INLINE_ int ext2fs_test_valid(ext2_filsys fs)
1653 _INLINE_ void ext2fs_mark_ib_dirty(ext2_filsys fs)
1661 _INLINE_ void ext2fs_mark_bb_dirty(ext2_filsys fs)
1669 _INLINE_ int ext2fs_test_ib_dirty(ext2_filsys fs)
1677 _INLINE_ int ext2fs_test_bb_dirty(ext2_filsys fs)
1685 _INLINE_ dgrp_t ext2fs_group_of_blk(ext2_filsys fs, blk_t blk)
1692 _INLINE_ dgrp_t ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino)
1700 _INLINE_ blk_t ext2fs_group_first_block(ext2_filsys fs, dgrp_t group)
1708 _INLINE_ blk_t ext2fs_group_last_block(ext2_filsys fs, dgrp_t group)
1713 _INLINE_ blk_t ext2fs_inode_data_blocks(ext2_filsys fs,