/external/e2fsprogs/lib/ext2fs/ |
D | alloc.c | 147 errcode_t ext2fs_new_block3(ext2_filsys fs, blk64_t goal, in ext2fs_new_block3() 148 ext2fs_block_bitmap map, blk64_t *ret, in ext2fs_new_block3() 152 blk64_t b = 0; in ext2fs_new_block3() 153 errcode_t (*gab)(ext2_filsys fs, blk64_t goal, blk64_t *ret); in ext2fs_new_block3() 154 errcode_t (*gab2)(ext2_filsys, blk64_t, blk64_t *, in ext2fs_new_block3() 204 errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal, in ext2fs_new_block2() 205 ext2fs_block_bitmap map, blk64_t *ret) in ext2fs_new_block2() 214 blk64_t val; in ext2fs_new_block() 225 errcode_t ext2fs_alloc_block3(ext2_filsys fs, blk64_t goal, char *block_buf, in ext2fs_alloc_block3() 226 blk64_t *ret, struct blk_alloc_ctx *ctx) in ext2fs_alloc_block3() [all …]
|
D | ext2fs.h | 78 typedef __u64 __bitwise blk64_t; typedef 147 blk64_t blk; 275 errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal, 276 blk64_t *ret); 277 errcode_t (*get_alloc_block2)(ext2_filsys fs, blk64_t goal, 278 blk64_t *ret, struct blk_alloc_ctx *ctx); 279 void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse); 303 errcode_t (*new_range)(ext2_filsys fs, int flags, blk64_t goal, 304 blk64_t len, blk64_t *pblk, blk64_t *plen); 305 void (*block_alloc_stats_range)(ext2_filsys fs, blk64_t blk, blk_t num, [all …]
|
D | bitops.h | 128 blk64_t block); 130 blk64_t block); 132 blk64_t block); 142 blk64_t block); 144 blk64_t block); 146 blk64_t block); 155 blk64_t start, 156 blk64_t end, 157 blk64_t *out); 163 blk64_t start, [all …]
|
D | blknum.c | 20 dgrp_t ext2fs_group_of_blk2(ext2_filsys fs, blk64_t blk) in ext2fs_group_of_blk2() 29 blk64_t ext2fs_group_first_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_first_block2() 38 blk64_t ext2fs_group_last_block2(ext2_filsys fs, dgrp_t group) in ext2fs_group_last_block2() 68 blk64_t ext2fs_inode_data_blocks2(ext2_filsys fs, in ext2fs_inode_data_blocks2() 80 blk64_t ext2fs_inode_i_blocks(ext2_filsys fs, in ext2fs_inode_i_blocks() 91 blk64_t ext2fs_blocks_count(struct ext2_super_block *super) in ext2fs_blocks_count() 101 void ext2fs_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_set() 111 void ext2fs_blocks_count_add(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_add() 113 blk64_t tmp; in ext2fs_blocks_count_add() 121 blk64_t ext2fs_r_blocks_count(struct ext2_super_block *super) in ext2fs_r_blocks_count() [all …]
|
D | brel_ma.c | 30 static errcode_t bma_put(ext2_brel brel, blk64_t old, 32 static errcode_t bma_get(ext2_brel brel, blk64_t old, 35 static errcode_t bma_next(ext2_brel brel, blk64_t *old, 37 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new); 38 static errcode_t bma_delete(ext2_brel brel, blk64_t old); 43 blk64_t max_block; 47 errcode_t ext2fs_brel_memarray_create(char *name, blk64_t max_block, in ext2fs_brel_memarray_create() 105 static errcode_t bma_put(ext2_brel brel, blk64_t old, in bma_put() 117 static errcode_t bma_get(ext2_brel brel, blk64_t old, in bma_get() 137 static errcode_t bma_next(ext2_brel brel, blk64_t *old, in bma_next() [all …]
|
D | brel.h | 13 blk64_t new; 17 blk64_t block_ref; 31 blk64_t current; 37 errcode_t (*put)(ext2_brel brel, blk64_t old, 43 errcode_t (*get)(ext2_brel brel, blk64_t old, 55 errcode_t (*next)(ext2_brel brel, blk64_t *old, 62 errcode_t (*move)(ext2_brel brel, blk64_t old, blk_t new); 67 errcode_t (*delete)(ext2_brel brel, blk64_t old); 76 errcode_t ext2fs_brel_memarray_create(char *name, blk64_t max_block,
|
D | alloc_stats.c | 61 void ext2fs_block_alloc_stats2(ext2_filsys fs, blk64_t blk, int inuse) in ext2fs_block_alloc_stats2() 81 -inuse * (blk64_t) EXT2FS_CLUSTER_RATIO(fs)); in ext2fs_block_alloc_stats2() 85 (fs->block_alloc_stats)(fs, (blk64_t) blk, inuse); in ext2fs_block_alloc_stats2() 95 blk64_t blk, in ext2fs_set_block_alloc_stats_callback() 98 blk64_t blk, in ext2fs_set_block_alloc_stats_callback() 109 void ext2fs_block_alloc_stats_range(ext2_filsys fs, blk64_t blk, in ext2fs_block_alloc_stats_range() 131 blk64_t last_blk = ext2fs_group_last_block2(fs, group); in ext2fs_block_alloc_stats_range() 132 blk64_t n = num; in ext2fs_block_alloc_stats_range() 142 ext2fs_free_blocks_count_add(fs->super, -inuse * (blk64_t) n); in ext2fs_block_alloc_stats_range() 153 void (*func)(ext2_filsys fs, blk64_t blk, in ext2fs_set_block_alloc_stats_range_callback() [all …]
|
D | punch.c | 51 blk64_t start, blk64_t count, int max) in ind_punch() 56 blk64_t offset, incr; in ind_punch() 106 char *block_buf, blk64_t start, blk64_t end) in ext2fs_punch_ind() 114 blk64_t max = EXT2_NDIR_BLOCKS; in ext2fs_punch_ind() 134 for (level = 0; level < 4; level++, max *= (blk64_t)addr_per_block) { in ext2fs_punch_ind() 195 blk64_t lfree_start, blk64_t free_start, in punch_extent_blocks() 198 blk64_t pblk; in punch_extent_blocks() 263 blk64_t start, blk64_t end) in ext2fs_punch_extent() 268 blk64_t free_start, next, lfree_start; in ext2fs_punch_extent() 379 blk64_t old_lblk, next_lblk; in ext2fs_punch_extent() [all …]
|
D | bmap.c | 136 char *block_buf, int bmap_flags, blk64_t block, 138 blk64_t *phys_blk); 143 blk64_t lblk, blk64_t *phys_blk) in implied_cluster_alloc() 145 blk64_t base_block, pblock = 0; in implied_cluster_alloc() 177 struct ext2_inode *inode, blk64_t lblk, in ext2fs_map_cluster_block() 178 blk64_t *pblk) in ext2fs_map_cluster_block() 206 char *block_buf, int bmap_flags, blk64_t block, in extent_bmap() 208 blk64_t *phys_blk) in extent_bmap() 214 blk64_t blk64 = 0; in extent_bmap() 282 blk64_t offset) in ext2fs_file_block_offset_too_big() [all …]
|
D | alloc_tables.c | 38 static blk64_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk64_t start_blk, in flexbg_offset() 43 blk64_t last_blk, first_free = 0; in flexbg_offset() 88 blk64_t group_blk, start_blk, last_blk, new_blk; in ext2fs_allocate_group_table() 124 blk64_t prev_block = 0; in ext2fs_allocate_group_table() 167 blk64_t prev_block = 0; in ext2fs_allocate_group_table() 203 blk64_t prev_block = 0; in ext2fs_allocate_group_table() 229 blk64_t num, blk; in ext2fs_allocate_group_table() 235 blk64_t n = num; in ext2fs_allocate_group_table()
|
D | block.c | 25 blk64_t *blocknr, 27 blk64_t ref_blk, 66 blk64_t blk64; in block_iterate_ind() 155 blk64_t blk64; in block_iterate_dind() 241 blk64_t blk64; in block_iterate_tind() 326 blk64_t *blocknr, in ext2fs_block_iterate3() 328 blk64_t ref_blk, in ext2fs_block_iterate3() 339 blk64_t blk64; in ext2fs_block_iterate3() 401 blk64_t blk, new_blk; in ext2fs_block_iterate3() 432 (blk64_t) blockcnt++, in ext2fs_block_iterate3() [all …]
|
D | closefs.c | 73 blk64_t *ret_super_blk, in ext2fs_super_and_bgd_loc2() 74 blk64_t *ret_old_desc_blk, in ext2fs_super_and_bgd_loc2() 75 blk64_t *ret_new_desc_blk, in ext2fs_super_and_bgd_loc2() 78 blk64_t group_block, super_blk = 0, old_desc_blk = 0, new_desc_blk = 0; in ext2fs_super_and_bgd_loc2() 81 blk64_t old_desc_blocks; in ext2fs_super_and_bgd_loc2() 152 blk64_t ret_super_blk2; in ext2fs_super_and_bgd_loc() 153 blk64_t ret_old_desc_blk2; in ext2fs_super_and_bgd_loc() 154 blk64_t ret_new_desc_blk2; in ext2fs_super_and_bgd_loc() 254 blk64_t group_block, in write_backup_super() 291 blk64_t old_desc_blocks; in ext2fs_flush2() [all …]
|
D | blkmap64_ba.c | 168 blk64_t bitno = (blk64_t) arg; in ba_mark_bmap() 176 blk64_t bitno = (blk64_t) arg; in ba_unmark_bmap() 184 blk64_t bitno = (blk64_t) arg; in ba_test_bmap() 193 blk64_t bitno = (blk64_t) arg; in ba_mark_bmap_extent() 204 blk64_t bitno = (blk64_t) arg; in ba_unmark_bmap_extent()
|
D | fallocate.c | 84 blk64_t blk, blk64_t len) in claim_range() 86 blk64_t clusters; in claim_range() 102 blk64_t range_start, blk64_t range_len, in ext_falloc_helper() 103 blk64_t alloc_goal) in ext_falloc_helper() 107 blk64_t fillable, pblk, plen, x, y; in ext_falloc_helper() 108 blk64_t eof_blk = 0, cluster_fill = 0; in ext_falloc_helper() 669 struct ext2_inode *inode, blk64_t goal, in extent_fallocate() 670 blk64_t start, blk64_t len) in extent_fallocate() 676 blk64_t range_start, range_end = 0, end, next; in extent_fallocate() 677 blk64_t count, goal_distance; in extent_fallocate() [all …]
|
D | sparse_io.c | 358 static blk64_t block_to_sparse_block(blk64_t block, blk64_t *offset, in block_to_sparse_block() 362 blk64_t ret = block; in block_to_sparse_block() 378 static errcode_t sparse_read_blk64(io_channel channel, blk64_t block, in sparse_read_blk64() 383 blk64_t offset = 0, cur_block; in sparse_read_blk64() 418 static errcode_t sparse_write_blk64(io_channel channel, blk64_t block, in sparse_write_blk64() 422 blk64_t offset = 0, cur_block; in sparse_write_blk64() 466 blk64_t blk, unsigned long long count) in sparse_discard() 468 blk64_t cur_block, offset; in sparse_discard() 487 static errcode_t sparse_zeroout(io_channel channel, blk64_t blk, in sparse_zeroout() 507 blk64_t blk __attribute__((unused)), in sparse_cache_readahead()
|
/external/e2fsprogs/misc/ |
D | mk_hugefiles.c | 61 static blk64_t num_blocks; 62 static blk64_t num_slack; 64 static blk64_t goal; 182 static blk64_t get_partition_start(const char *device_name) in get_partition_start() 262 static errcode_t mk_hugefile(ext2_filsys fs, blk64_t num, in mk_hugefile() 267 blk64_t lblk, bend = 0; in mk_hugefile() 269 blk64_t left; in mk_hugefile() 270 blk64_t count = 0; in mk_hugefile() 307 blk64_t pblk, end; in mk_hugefile() 308 blk64_t n = left; in mk_hugefile() [all …]
|
D | e2image.c | 58 #define NO_BLK ((blk64_t) -1) 76 static blk64_t source_offset, dest_offset; 82 static blk64_t align_offset(blk64_t offset, unsigned int n) in align_offset() 84 return (offset + n - 1) & ~((blk64_t) n - 1); in align_offset() 162 static void generic_write(int fd, void *buf, int blocksize, blk64_t block) in generic_write() 301 static blk64_t meta_blocks_count; 367 blk64_t *block_nr, in process_dir_block() 369 blk64_t ref_block EXT2FS_ATTR((unused)), in process_dir_block() 385 blk64_t *block_nr, in process_file_block() 387 blk64_t ref_block EXT2FS_ATTR((unused)), in process_file_block() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | pass1b.c | 58 blk64_t cluster; 86 static int process_pass1b_block(ext2_filsys fs, blk64_t *blocknr, 87 e2_blkcnt_t blockcnt, blk64_t ref_blk, 93 static int check_if_fs_block(e2fsck_t ctx, blk64_t test_block); 94 static int check_if_fs_cluster(e2fsck_t ctx, blk64_t cluster); 120 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk64_t cluster, in add_dupe() 254 blk64_t next; in e2fsck_pass1_dupblocks() 282 blk64_t cur_cluster, phys_cluster; 283 blk64_t last_blk; 351 blk64_t blk = ext2fs_file_acl_block(fs, EXT2_INODE(&inode)); in pass1b() [all …]
|
/external/e2fsprogs/contrib/android/ |
D | block_range.h | 8 blk64_t start; 9 blk64_t end; 14 blk64_t blk_start, blk64_t blk_end);
|
D | block_range.c | 6 struct block_range *new_block_range(blk64_t start, blk64_t end) in new_block_range() 16 blk64_t blk_start, blk64_t blk_end) in add_blocks_to_range()
|
/external/e2fsprogs/resize/ |
D | resize2fs.h | 114 blk64_t needed_blocks; 121 blk64_t new_blk; 144 extern errcode_t resize_fs(ext2_filsys fs, blk64_t *new_size, int flags, 151 blk64_t new_size); 152 extern blk64_t calculate_minimum_resize_size(ext2_filsys fs, int flags); 171 blk64_t *new_size, int flags);
|
D | resize2fs.c | 45 static errcode_t adjust_superblock(ext2_resize_t rfs, blk64_t new_size); 59 static errcode_t resize_group_descriptors(ext2_resize_t rfs, blk64_t new_size); 66 static inline int is_block_bm(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_block_bm() 71 static inline int is_inode_bm(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_inode_bm() 76 static int is_inode_tb(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_inode_tb() 97 errcode_t resize_fs(ext2_filsys fs, blk64_t *new_size, int flags, in resize_fs() 286 static errcode_t resize_group_descriptors(ext2_resize_t rfs, blk64_t new_size) in resize_group_descriptors() 351 blk64_t b, c, d, old_desc_blocks, new_desc_blocks, j; in move_bg_metadata() 585 blk64_t blk, lblk; in fix_uninit_block_bitmaps() 634 blk64_t blk; in free_gdp_blocks() [all …]
|
/external/e2fsprogs/debugfs/ |
D | htree.c | 35 blk64_t blk, char *buf) in htree_dump_leaf_node() 43 blk64_t pblk; in htree_dump_leaf_node() 131 blk64_t blk, char *buf, int level); 195 blk64_t blk, char *buf, int level) in htree_dump_int_block() 199 blk64_t pblk; in htree_dump_int_block() 235 blk64_t blk; in do_htree_dump() 363 static int search_dir_block(ext2_filsys fs, blk64_t *blocknr, 364 e2_blkcnt_t blockcnt, blk64_t ref_blk, 400 static int search_dir_block(ext2_filsys fs, blk64_t *blocknr, in search_dir_block() 402 blk64_t ref_blk EXT2FS_ATTR((unused)), in search_dir_block()
|
D | util.c | 341 blk64_t *ret) in strtoblk() 343 blk64_t blk; in strtoblk() 400 blk64_t *block, blk64_t *count) in common_block_args_process() 520 errcode_t read_list(char *str, blk64_t **list, size_t *len) in read_list() 522 blk64_t *lst = *list; in read_list() 528 blk64_t *l; in read_list() 529 blk64_t x, y; in read_list() 548 l = realloc(lst, sizeof(blk64_t) * (ln + y - x + 1)); in read_list()
|
D | do_journal.c | 49 blk64_t block; 50 blk64_t start, end; 93 blk64_t cblk; in journal_commit_trans() 161 blk64_t *revoke_list, in journal_add_revoke_to_trans() 167 blk64_t curr_blk; in journal_add_revoke_to_trans() 264 blk64_t *block_list, size_t block_len, in journal_add_blocks_to_trans() 267 blk64_t curr_blk, jdb_blk; in journal_add_blocks_to_trans() 411 static blk64_t journal_guess_blocks(journal_t *journal, blk64_t data_blocks, in journal_guess_blocks() 412 blk64_t revoke_blocks) in journal_guess_blocks() 414 blk64_t ret = 1; in journal_guess_blocks() [all …]
|