Home
last modified time | relevance | path

Searched refs:blk_t (Results 1 – 25 of 47) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Dbmap.c32 blk_t block, blk_t *phys_blk);
37 blk_t ind, char *block_buf, in block_ind_bmap()
39 blk_t nr, blk_t *ret_blk) in block_ind_bmap()
42 blk_t b; in block_ind_bmap()
59 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap()
63 b = ((blk_t *) block_buf)[nr]; in block_ind_bmap()
70 b = nr ? ext2fs_le32_to_cpu(((blk_t *)block_buf)[nr - 1]) : ind; in block_ind_bmap()
77 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b); in block_ind_bmap()
79 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap()
94 blk_t dind, char *block_buf, in block_dind_bmap()
[all …]
Dbb_inode.c37 blk_t *ind_blocks;
45 static int set_bad_block_proc(ext2_filsys fs, blk_t *block_nr,
47 blk_t ref_block, int ref_offset,
49 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr,
51 blk_t ref_block, int ref_offset,
71 retval = ext2fs_get_array(rec.max_ind_blocks, sizeof(blk_t), in ext2fs_update_bb_inode()
75 memset(rec.ind_blocks, 0, rec.max_ind_blocks * sizeof(blk_t)); in ext2fs_update_bb_inode()
155 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, in clear_bad_block_proc()
157 blk_t ref_block EXT2FS_ATTR((unused)), in clear_bad_block_proc()
180 old_size = rec->max_ind_blocks * sizeof(blk_t); in clear_bad_block_proc()
[all …]
Dblock.c60 static int block_iterate_ind(blk_t *ind_block, blk_t ref_block, in block_iterate_ind()
65 blk_t *block_nr; in block_iterate_ind()
95 block_nr = (blk_t *) ctx->ind_buf; in block_iterate_ind()
109 offset += sizeof(blk_t); in block_iterate_ind()
126 offset += sizeof(blk_t); in block_iterate_ind()
149 static int block_iterate_dind(blk_t *dind_block, blk_t ref_block, in block_iterate_dind()
154 blk_t *block_nr; in block_iterate_dind()
184 block_nr = (blk_t *) ctx->dind_buf; in block_iterate_dind()
196 offset += sizeof(blk_t); in block_iterate_dind()
212 offset += sizeof(blk_t); in block_iterate_dind()
[all …]
Dbitops.h67 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block);
69 blk_t block);
70 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block);
78 blk_t block);
80 blk_t block);
82 blk_t block);
90 extern blk_t ext2fs_get_block_bitmap_start(ext2fs_block_bitmap bitmap);
92 extern blk_t ext2fs_get_block_bitmap_end(ext2fs_block_bitmap bitmap);
96 blk_t block, int num);
98 blk_t block, int num);
[all …]
Dext2fs.h77 typedef __u32 __bitwise blk_t; typedef
154 blk_t blk;
239 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
305 void (*block_alloc_stats_range)(ext2_filsys fs, blk64_t blk, blk_t num,
692 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal,
693 ext2fs_block_bitmap map, blk_t *ret);
699 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start,
700 blk_t finish, int num,
702 blk_t *ret);
707 extern errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal,
[all …]
Dtst_badblocks.c32 blk_t test1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 };
33 blk_t test2[] = { 11, 10, 9, 8, 7, 6, 5, 4, 3, 3, 2, 1, 0 };
34 blk_t test3[] = { 3, 1, 4, 5, 9, 2, 7, 10, 5, 6, 10, 8, 0 };
35 blk_t test4[] = { 20, 50, 12, 17, 13, 2, 66, 23, 56, 0 };
36 blk_t test4a[] = {
51 blk_t test5[] = { 31, 20, 17, 51, 23, 1, 56, 57, 0 };
52 blk_t test5a[] = {
69 static errcode_t create_test_list(blk_t *vec, badblocks_list *ret) in create_test_list()
97 blk_t blk; in print_list()
122 static void validate_test_seq(badblocks_list bb, blk_t *vec) in validate_test_seq()
[all …]
Dind_block.c23 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) in ext2fs_read_ind_block()
27 blk_t *block_nr; in ext2fs_read_ind_block()
41 block_nr = (blk_t *) buf; in ext2fs_read_ind_block()
48 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf) in ext2fs_write_ind_block()
51 blk_t *block_nr; in ext2fs_write_ind_block()
60 block_nr = (blk_t *) buf; in ext2fs_write_ind_block()
Dread_bb_file.c37 blk_t blk, in ext2fs_read_bb_FILE2()
79 void (*invalid)(ext2_filsys, blk_t);
82 static void call_compat_invalid(ext2_filsys fs, blk_t blk, in call_compat_invalid()
99 void (*invalid)(ext2_filsys fs, blk_t blk)) in ext2fs_read_bb_FILE()
Dclosefs.c76 blk_t *ret_used_blks) in ext2fs_super_and_bgd_loc2()
80 blk_t numblocks = 0; in ext2fs_super_and_bgd_loc2()
147 blk_t *ret_super_blk, in ext2fs_super_and_bgd_loc()
148 blk_t *ret_old_desc_blk, in ext2fs_super_and_bgd_loc()
149 blk_t *ret_new_desc_blk, in ext2fs_super_and_bgd_loc()
155 blk_t ret_used_blks; in ext2fs_super_and_bgd_loc()
156 blk_t numblocks; in ext2fs_super_and_bgd_loc()
167 *ret_super_blk = (blk_t)ret_super_blk2; in ext2fs_super_and_bgd_loc()
169 *ret_old_desc_blk = (blk_t)ret_old_desc_blk2; in ext2fs_super_and_bgd_loc()
171 *ret_new_desc_blk = (blk_t)ret_new_desc_blk2; in ext2fs_super_and_bgd_loc()
Dbadblocks.c46 retval = ext2fs_get_array(bb->size, sizeof(blk_t), &bb->list); in make_u32_list()
52 memcpy(bb->list, list, bb->size * sizeof(blk_t)); in make_u32_list()
54 memset(bb->list, 0, bb->size * sizeof(blk_t)); in make_u32_list()
154 errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_add()
206 int ext2fs_badblocks_list_test(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_test()
284 int ext2fs_badblocks_list_iterate(ext2_badblocks_iterate iter, blk_t *blk) in ext2fs_badblocks_list_iterate()
314 if (memcmp(bb1->list, bb2->list, bb1->num * sizeof(blk_t)) != 0) in ext2fs_u32_list_equal()
Dpunch.c50 char *block_buf, blk_t *p, int level, in ind_punch()
54 blk_t b; in ind_punch()
71 blk_t start2; in ind_punch()
80 (blk_t *) block_buf, level - 1, in ind_punch()
104 #define BLK_T_MAX ((blk_t)~0ULL)
112 blk_t *bp = inode->i_block; in ext2fs_punch_ind()
113 blk_t addr_per_block; in ext2fs_punch_ind()
115 blk_t count; in ext2fs_punch_ind()
132 addr_per_block = (blk_t)fs->blocksize >> 2; in ext2fs_punch_ind()
Dbb_compat.c40 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk) in badblocks_list_add()
45 int badblocks_list_test(badblocks_list bb, blk_t blk) in badblocks_list_test()
56 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk) in badblocks_list_iterate()
Ddirblock.c53 errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, in ext2fs_read_dir_block2()
59 errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block, in ext2fs_read_dir_block()
102 errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block, in ext2fs_write_dir_block2()
108 errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block, in ext2fs_write_dir_block()
Dalloc.c210 errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, in ext2fs_new_block()
211 ext2fs_block_bitmap map, blk_t *ret) in ext2fs_new_block()
217 *ret = (blk_t) val; in ext2fs_new_block()
272 errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, in ext2fs_alloc_block()
273 char *block_buf, blk_t *ret) in ext2fs_alloc_block()
279 *ret = (blk_t)ret64; in ext2fs_alloc_block()
319 errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start, blk_t finish, in ext2fs_get_free_blocks()
320 int num, ext2fs_block_bitmap map, blk_t *ret) in ext2fs_get_free_blocks()
326 *ret = (blk_t) val; in ext2fs_get_free_blocks()
526 blk_t len, blk64_t *ret) in ext2fs_alloc_range()
Dread_bb.c41 static int mark_bad_block(ext2_filsys fs, blk_t *block_nr, in mark_bad_block()
43 blk_t ref_block EXT2FS_ATTR((unused)), in mark_bad_block()
70 blk_t numblocks; in ext2fs_read_bb_inode()
Dalloc_stats.c88 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) in ext2fs_block_alloc_stats()
110 blk_t num, int inuse) in ext2fs_block_alloc_stats_range()
154 blk_t num, int inuse), in ext2fs_set_block_alloc_stats_range_callback()
156 blk_t num, int inuse)) in ext2fs_set_block_alloc_stats_range_callback()
Dmkjournal.c91 blk_t num_blocks, int flags) in write_journal_file()
96 blk_t i; in write_journal_file()
218 errcode_t ext2fs_zero_blocks(ext2_filsys fs, blk_t blk, int num, in ext2fs_zero_blocks()
219 blk_t *ret_blk, int *ret_count) in ext2fs_zero_blocks()
226 *ret_blk = (blk_t) ret_blk2; in ext2fs_zero_blocks()
265 blk_t num_blocks, blk64_t goal, int flags) in write_journal_inode()
437 errcode_t ext2fs_add_journal_inode2(ext2_filsys fs, blk_t num_blocks, in ext2fs_add_journal_inode2()
549 errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t num_blocks, int flags) in ext2fs_add_journal_inode()
Dgen_bitmap.c180 blk_t bitno) in ext2fs_test_generic_bitmap()
228 blk_t bitno) in ext2fs_unmark_generic_bitmap()
375 blk_t i; in ext2fs_compare_generic_bitmap()
543 blk_t b; in ext2fs_find_first_zero_generic_bitmap()
567 blk_t b; in ext2fs_find_first_set_generic_bitmap()
587 blk_t block, int num) in ext2fs_test_block_bitmap_range()
617 blk_t block, int num) in ext2fs_mark_block_bitmap_range()
632 blk_t block, int num) in ext2fs_unmark_block_bitmap_range()
Dbitmaps.c182 blk_t end, blk_t *oend) in ext2fs_fudge_block_bitmap_end()
281 blk_t start, unsigned int num, in ext2fs_set_block_bitmap_range()
297 blk_t start, unsigned int num, in ext2fs_get_block_bitmap_range()
Dres_gdt.c82 blk_t dindir_blk, rsv_off, gdt_off, gdt_blk; in ext2fs_create_resize_inode()
117 blk_t goal = sb_blk + fs->desc_blocks + in ext2fs_create_resize_inode()
188 blk_t expect = gdt_blk + grp * sb->s_blocks_per_group; in ext2fs_create_resize_inode()
Dgetsize.c281 blk_t *retblocks) in ext2fs_get_device_size()
291 *retblocks = (blk_t) blocks; in ext2fs_get_device_size()
298 blk_t blocks; in main()
/external/e2fsprogs/misc/
Dbadblocks.c116 static blk_t currently_testing = 0;
117 static blk_t num_blocks = 0;
118 static blk_t num_read_errors = 0;
119 static blk_t num_write_errors = 0;
120 static blk_t num_corruption_errors = 0;
123 static blk_t next_bad = 0;
155 static int bb_output (blk_t bad, enum error_types error_type) in bb_output()
368 blk_t current_block) in do_read()
488 static unsigned int test_ro (int dev, blk_t last_block, in test_ro()
489 int block_size, blk_t first_block, in test_ro()
[all …]
/external/e2fsprogs/tests/progs/
Dtest_rel.c56 const char *str, blk_t *blk) in parse_block()
93 static void display_brel_entry(blk_t old, in display_brel_entry()
148 blk_t max_blk; in do_brel_ma_create()
178 blk_t old, new, offset=0, owner=0; in do_brel_put()
219 blk_t blk; in do_brel_get()
257 blk_t blk; in do_brel_next()
279 blk_t blk; in do_brel_dump()
308 blk_t old, new; in do_brel_move()
333 blk_t blk; in do_brel_delete()
539 blk_t block, offset; in do_irel_add_ref()
/external/e2fsprogs/e2fsck/
Dbadblocks.c17 static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt,
21 static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) in invalid_block()
121 blk_t *block_nr, in check_bb_inode_blocks()
/external/e2fsprogs/contrib/android/
Dext2simg.c66 static void add_chunk(ext2_filsys fs, struct sparse_file *s, blk_t chunk_start, blk_t chunk_end) in add_chunk()
115 blk_t first_blk, last_blk, nb_blk, cur_blk; in ext_to_sparse()

12