Home
last modified time | relevance | path

Searched refs:blk64_t (Results 1 – 25 of 104) sorted by relevance

12345

/external/e2fsprogs/lib/ext2fs/
Dalloc.c147 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 …]
Dext2fs.h78 typedef __u64 __bitwise blk64_t; typedef
140 blk64_t blk;
266 errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
267 blk64_t *ret);
268 errcode_t (*get_alloc_block2)(ext2_filsys fs, blk64_t goal,
269 blk64_t *ret, struct blk_alloc_ctx *ctx);
270 void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
294 errcode_t (*new_range)(ext2_filsys fs, int flags, blk64_t goal,
295 blk64_t len, blk64_t *pblk, blk64_t *plen);
296 void (*block_alloc_stats_range)(ext2_filsys fs, blk64_t blk, blk_t num,
[all …]
Dbitops.h128 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 …]
Dbrel_ma.c30 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 …]
Dblknum.c20 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 …]
Dbrel.h13 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,
Dalloc_stats.c61 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 …]
Dpunch.c51 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 …]
Dbmap.c136 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()
280 blk64_t offset) in ext2fs_file_block_offset_too_big()
[all …]
Dclosefs.c73 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()
293 blk64_t old_desc_blocks; in ext2fs_flush2()
[all …]
Dblock.c25 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 …]
Dblkmap64_ba.c168 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()
Dfallocate.c84 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 …]
Dsparse_io.c349 static blk64_t block_to_sparse_block(blk64_t block, blk64_t *offset, in block_to_sparse_block()
353 blk64_t ret = block; in block_to_sparse_block()
369 static errcode_t sparse_read_blk64(io_channel channel, blk64_t block, in sparse_read_blk64()
374 blk64_t offset = 0, cur_block; in sparse_read_blk64()
409 static errcode_t sparse_write_blk64(io_channel channel, blk64_t block, in sparse_write_blk64()
413 blk64_t offset = 0, cur_block; in sparse_write_blk64()
457 blk64_t blk, unsigned long long count) in sparse_discard()
459 blk64_t cur_block, offset; in sparse_discard()
478 static errcode_t sparse_zeroout(io_channel channel, blk64_t blk, in sparse_zeroout()
498 blk64_t blk __attribute__((unused)), in sparse_cache_readahead()
/external/e2fsprogs/misc/
Dmk_hugefiles.c61 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()
321 static blk64_t calc_overhead(ext2_filsys fs, blk64_t num) in calc_overhead()
323 blk64_t e_blocks, e_blocks2, e_blocks3, e_blocks4; in calc_overhead()
353 static blk64_t get_start_block(ext2_filsys fs, blk64_t slack) in get_start_block()
356 blk64_t blk = fs->super->s_first_data_block, next; in get_start_block()
357 blk64_t last_blk = ext2fs_blocks_count(fs->super) - 1; in get_start_block()
[all …]
De2image.c57 #define NO_BLK ((blk64_t) -1)
75 static blk64_t source_offset, dest_offset;
81 static blk64_t align_offset(blk64_t offset, unsigned int n) in align_offset()
83 return (offset + n - 1) & ~((blk64_t) n - 1); in align_offset()
161 static void generic_write(int fd, void *buf, int blocksize, blk64_t block) in generic_write()
300 static blk64_t meta_blocks_count;
366 blk64_t *block_nr, in process_dir_block()
368 blk64_t ref_block EXT2FS_ATTR((unused)), in process_dir_block()
384 blk64_t *block_nr, in process_file_block()
386 blk64_t ref_block EXT2FS_ATTR((unused)), in process_file_block()
[all …]
/external/e2fsprogs/contrib/android/
Dblock_range.h8 blk64_t start;
9 blk64_t end;
14 blk64_t blk_start, blk64_t blk_end);
Dblock_range.c6 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/
Dresize2fs.h114 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);
Dresize2fs.c45 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/e2fsck/
Dpass1b.c58 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()
264 blk64_t cur_cluster, phys_cluster;
265 blk64_t last_blk;
333 blk64_t blk = ext2fs_file_acl_block(fs, EXT2_INODE(&inode)); in pass1b()
357 blk64_t *block_nr, in process_pass1b_block()
[all …]
De2fsck.h122 blk64_t phys;
124 blk64_t parent;
232 blk64_t use_superblock; /* sb requested by user */
233 blk64_t superblock; /* sb used to open fs */
234 blk64_t num_blocks; /* Total number of blocks */
235 blk64_t free_blocks;
377 blk64_t root_repair_block, lnf_repair_block;
468 extern errcode_t ea_refcount_fetch(ext2_refcount_t refcount, blk64_t blk, int *ret);
470 blk64_t blk, int *ret);
472 blk64_t blk, int *ret);
[all …]
Dea_refcount.c28 blk64_t ea_blk;
114 blk64_t blk, int pos) in insert_refcount_el()
156 blk64_t blk, int create) in get_refcount_el()
209 errcode_t ea_refcount_fetch(ext2_refcount_t refcount, blk64_t blk, in ea_refcount_fetch()
223 errcode_t ea_refcount_increment(ext2_refcount_t refcount, blk64_t blk, int *ret) in ea_refcount_increment()
237 errcode_t ea_refcount_decrement(ext2_refcount_t refcount, blk64_t blk, int *ret) in ea_refcount_decrement()
252 errcode_t ea_refcount_store(ext2_refcount_t refcount, blk64_t blk, int count) in ea_refcount_store()
280 blk64_t ea_refcount_intr_next(ext2_refcount_t refcount, in ea_refcount_intr_next()
374 blk64_t blk; in main()
/external/e2fsprogs/debugfs/
Dhtree.c35 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()
234 blk64_t blk; in do_htree_dump()
360 static int search_dir_block(ext2_filsys fs, blk64_t *blocknr,
361 e2_blkcnt_t blockcnt, blk64_t ref_blk,
396 static int search_dir_block(ext2_filsys fs, blk64_t *blocknr, in search_dir_block()
398 blk64_t ref_blk EXT2FS_ATTR((unused)), in search_dir_block()
Dutil.c336 blk64_t *ret) in strtoblk()
338 blk64_t blk; in strtoblk()
395 blk64_t *block, blk64_t *count) in common_block_args_process()
515 errcode_t read_list(char *str, blk64_t **list, size_t *len) in read_list()
517 blk64_t *lst = *list; in read_list()
523 blk64_t *l; in read_list()
524 blk64_t x, y; in read_list()
543 l = realloc(lst, sizeof(blk64_t) * (ln + y - x + 1)); in read_list()

12345