/external/e2fsprogs/lib/ext2fs/ |
D | bmap.c | 31 blk_t block, blk_t *phys_blk); 36 blk_t ind, char *block_buf, in block_ind_bmap() 38 blk_t nr, blk_t *ret_blk) in block_ind_bmap() 41 blk_t b; in block_ind_bmap() 58 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() 62 b = ((blk_t *) block_buf)[nr]; in block_ind_bmap() 69 b = nr ? ((blk_t *) block_buf)[nr-1] : 0; in block_ind_bmap() 76 ((blk_t *) block_buf)[nr] = ext2fs_swab32(b); in block_ind_bmap() 78 ((blk_t *) block_buf)[nr] = b; in block_ind_bmap() 93 blk_t dind, char *block_buf, in block_dind_bmap() [all …]
|
D | bb_inode.c | 36 blk_t *ind_blocks; 44 static int set_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 46 blk_t ref_block, int ref_offset, 48 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 50 blk_t ref_block, int ref_offset, 70 retval = ext2fs_get_array(rec.max_ind_blocks, sizeof(blk_t), in ext2fs_update_bb_inode() 74 memset(rec.ind_blocks, 0, rec.max_ind_blocks * sizeof(blk_t)); in ext2fs_update_bb_inode() 151 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, in clear_bad_block_proc() 153 blk_t ref_block EXT2FS_ATTR((unused)), in clear_bad_block_proc() 176 old_size = rec->max_ind_blocks * sizeof(blk_t); in clear_bad_block_proc() [all …]
|
D | bitops.h | 65 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 67 blk_t block); 68 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 76 blk_t block); 78 blk_t block); 80 blk_t block); 88 extern blk_t ext2fs_get_block_bitmap_start(ext2fs_block_bitmap bitmap); 90 extern blk_t ext2fs_get_block_bitmap_end(ext2fs_block_bitmap bitmap); 94 blk_t block, int num); 96 blk_t block, int num); [all …]
|
D | block.c | 59 static int block_iterate_ind(blk_t *ind_block, blk_t ref_block, in block_iterate_ind() 64 blk_t *block_nr; in block_iterate_ind() 94 block_nr = (blk_t *) ctx->ind_buf; in block_iterate_ind() 108 offset += sizeof(blk_t); in block_iterate_ind() 125 offset += sizeof(blk_t); in block_iterate_ind() 148 static int block_iterate_dind(blk_t *dind_block, blk_t ref_block, in block_iterate_dind() 153 blk_t *block_nr; in block_iterate_dind() 183 block_nr = (blk_t *) ctx->dind_buf; in block_iterate_dind() 195 offset += sizeof(blk_t); in block_iterate_dind() 211 offset += sizeof(blk_t); in block_iterate_dind() [all …]
|
D | ext2fs.h | 74 typedef __u32 __bitwise blk_t; typedef 144 blk_t blk; 225 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks); 542 #define EXT2FS_COMPRESSED_BLKADDR ((blk_t) -1) 644 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, 645 ext2fs_block_bitmap map, blk_t *ret); 648 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start, 649 blk_t finish, int num, 651 blk_t *ret); 656 extern errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, [all …]
|
D | ind_block.c | 22 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) in ext2fs_read_ind_block() 26 blk_t *block_nr; in ext2fs_read_ind_block() 40 block_nr = (blk_t *) buf; in ext2fs_read_ind_block() 47 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf) in ext2fs_write_ind_block() 50 blk_t *block_nr; in ext2fs_write_ind_block() 59 block_nr = (blk_t *) buf; in ext2fs_write_ind_block()
|
D | tst_badblocks.c | 31 blk_t test1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }; 32 blk_t test2[] = { 11, 10, 9, 8, 7, 6, 5, 4, 3, 3, 2, 1 }; 33 blk_t test3[] = { 3, 1, 4, 5, 9, 2, 7, 10, 5, 6, 10, 8, 0 }; 34 blk_t test4[] = { 20, 50, 12, 17, 13, 2, 66, 23, 56, 0 }; 35 blk_t test4a[] = { 50 blk_t test5[] = { 31, 20, 17, 51, 23, 1, 56, 57, 0 }; 51 blk_t test5a[] = { 68 static errcode_t create_test_list(blk_t *vec, badblocks_list *ret) in create_test_list() 96 blk_t blk; in print_list() 121 static void validate_test_seq(badblocks_list bb, blk_t *vec) in validate_test_seq() [all …]
|
D | punch.c | 48 char *block_buf, blk_t *p, int level, in ind_punch() 49 blk_t start, blk_t count, int max) in ind_punch() 52 blk_t b; in ind_punch() 69 blk_t start2; in ind_punch() 78 (blk_t *) block_buf, level - 1, in ind_punch() 103 char *block_buf, blk_t start, blk_t count) in ext2fs_punch_ind() 109 blk_t *bp = inode->i_block; in ext2fs_punch_ind() 110 blk_t addr_per_block; in ext2fs_punch_ind() 120 addr_per_block = (blk_t) fs->blocksize >> 2; in ext2fs_punch_ind() 433 blk_t count; in ext2fs_punch() [all …]
|
D | alloc.c | 34 blk_t i; in check_block_uninit() 205 errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, in ext2fs_new_block() 206 ext2fs_block_bitmap map, blk_t *ret) in ext2fs_new_block() 212 *ret = (blk_t) val; in ext2fs_new_block() 264 errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, in ext2fs_alloc_block() 265 char *block_buf, blk_t *ret) in ext2fs_alloc_block() 271 *ret = (blk_t) val; in ext2fs_alloc_block() 308 errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start, blk_t finish, in ext2fs_get_free_blocks() 309 int num, ext2fs_block_bitmap map, blk_t *ret) in ext2fs_get_free_blocks() 315 *ret = (blk_t) val; in ext2fs_get_free_blocks()
|
D | read_bb_file.c | 36 blk_t blk, in ext2fs_read_bb_FILE2() 78 void (*invalid)(ext2_filsys, blk_t); 81 static void call_compat_invalid(ext2_filsys fs, blk_t blk, in call_compat_invalid() 98 void (*invalid)(ext2_filsys fs, blk_t blk)) in ext2fs_read_bb_FILE()
|
D | closefs.c | 68 blk_t *ret_used_blks) in ext2fs_super_and_bgd_loc2() 72 blk_t numblocks = 0; in ext2fs_super_and_bgd_loc2() 139 blk_t *ret_super_blk, in ext2fs_super_and_bgd_loc() 140 blk_t *ret_old_desc_blk, in ext2fs_super_and_bgd_loc() 141 blk_t *ret_new_desc_blk, in ext2fs_super_and_bgd_loc() 147 blk_t ret_used_blks; in ext2fs_super_and_bgd_loc() 148 blk_t numblocks; in ext2fs_super_and_bgd_loc() 159 *ret_super_blk = (blk_t)ret_super_blk2; in ext2fs_super_and_bgd_loc() 161 *ret_old_desc_blk = (blk_t)ret_old_desc_blk2; in ext2fs_super_and_bgd_loc() 163 *ret_new_desc_blk = (blk_t)ret_new_desc_blk2; in ext2fs_super_and_bgd_loc()
|
D | badblocks.c | 45 retval = ext2fs_get_array(bb->size, sizeof(blk_t), &bb->list); in make_u32_list() 51 memcpy(bb->list, list, bb->size * sizeof(blk_t)); in make_u32_list() 53 memset(bb->list, 0, bb->size * sizeof(blk_t)); in make_u32_list() 153 errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_add() 205 int ext2fs_badblocks_list_test(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_test() 283 int ext2fs_badblocks_list_iterate(ext2_badblocks_iterate iter, blk_t *blk) in ext2fs_badblocks_list_iterate() 313 if (memcmp(bb1->list, bb2->list, bb1->num * sizeof(blk_t)) != 0) in ext2fs_u32_list_equal()
|
D | bb_compat.c | 39 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk) in badblocks_list_add() 44 int badblocks_list_test(badblocks_list bb, blk_t blk) in badblocks_list_test() 55 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk) in badblocks_list_iterate()
|
D | dirblock.c | 61 errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, in ext2fs_read_dir_block2() 67 errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block, in ext2fs_read_dir_block() 115 errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block, in ext2fs_write_dir_block2() 121 errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block, in ext2fs_write_dir_block()
|
D | read_bb.c | 40 static int mark_bad_block(ext2_filsys fs, blk_t *block_nr, in mark_bad_block() 42 blk_t ref_block EXT2FS_ATTR((unused)), in mark_bad_block() 69 blk_t numblocks; in ext2fs_read_bb_inode()
|
D | getsize.c | 73 blk_t *retblocks) in ext2fs_get_device_size() 274 blk_t *retblocks) in ext2fs_get_device_size() 284 *retblocks = (blk_t) blocks; in ext2fs_get_device_size() 293 blk_t blocks; in main()
|
D | ext_attr.c | 76 errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf) in ext2fs_read_ext_attr() 105 errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *inbuf) in ext2fs_write_ext_attr() 151 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, in ext2fs_adjust_ea_refcount()
|
D | gen_bitmap.c | 171 blk_t bitno) in ext2fs_test_generic_bitmap() 215 blk_t bitno) in ext2fs_unmark_generic_bitmap() 349 blk_t i; in ext2fs_compare_generic_bitmap() 510 blk_t b; in ext2fs_find_first_zero_generic_bitmap() 531 blk_t block, int num) in ext2fs_test_block_bitmap_range() 557 blk_t block, int num) in ext2fs_mark_block_bitmap_range() 571 blk_t block, int num) in ext2fs_unmark_block_bitmap_range()
|
D | mkjournal.c | 93 blk_t num_blocks, int flags) in write_journal_file() 98 blk_t i; in write_journal_file() 201 errcode_t ext2fs_zero_blocks(ext2_filsys fs, blk_t blk, int num, in ext2fs_zero_blocks() 202 blk_t *ret_blk, int *ret_count) in ext2fs_zero_blocks() 209 *ret_blk = (blk_t) ret_blk2; in ext2fs_zero_blocks() 300 blk_t num_blocks, int flags) in write_journal_inode() 493 errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t num_blocks, int flags) in ext2fs_add_journal_inode()
|
D | bitmaps.c | 179 blk_t end, blk_t *oend) in ext2fs_fudge_block_bitmap_end() 278 blk_t start, unsigned int num, in ext2fs_set_block_bitmap_range() 294 blk_t start, unsigned int num, in ext2fs_get_block_bitmap_range()
|
D | res_gdt.c | 69 blk_t dindir_blk, rsv_off, gdt_off, gdt_blk; in ext2fs_create_resize_inode() 104 blk_t goal = sb_blk + fs->desc_blocks + in ext2fs_create_resize_inode() 178 blk_t expect = gdt_blk + grp * sb->s_blocks_per_group; in ext2fs_create_resize_inode()
|
/external/e2fsprogs/misc/ |
D | badblocks.c | 107 static blk_t currently_testing = 0; 108 static blk_t num_blocks = 0; 109 static blk_t num_read_errors = 0; 110 static blk_t num_write_errors = 0; 111 static blk_t num_corruption_errors = 0; 114 static blk_t next_bad = 0; 146 static int bb_output (blk_t bad, enum error_types error_type) in bb_output() 352 blk_t current_block) in do_read() 472 static unsigned int test_ro (int dev, blk_t last_block, in test_ro() 473 int block_size, blk_t first_block, in test_ro() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | ea_refcount.c | 32 blk_t count; 33 blk_t size; 34 blk_t cursor; 117 blk_t new_size = 0; in insert_refcount_el() 265 blk_t ext2fs_get_refcount_size(ext2_refcount_t refcount) in ext2fs_get_refcount_size() 397 blk = (blk_t) bcode_program[i++]; in main() 406 blk = (blk_t) bcode_program[i++]; in main() 416 blk = (blk_t) bcode_program[i++]; in main() 426 blk = (blk_t) bcode_program[i++]; in main()
|
D | badblocks.c | 16 static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt, 20 static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) in invalid_block() 118 blk_t *block_nr, in check_bb_inode_blocks()
|
/external/e2fsprogs/tests/progs/ |
D | test_rel.c | 55 const char *str, blk_t *blk) in parse_block() 92 static void display_brel_entry(blk_t old, in display_brel_entry() 147 blk_t max_blk; in do_brel_ma_create() 177 blk_t old, new, offset=0, owner=0; in do_brel_put() 218 blk_t blk; in do_brel_get() 256 blk_t blk; in do_brel_next() 278 blk_t blk; in do_brel_dump() 307 blk_t old, new; in do_brel_move() 332 blk_t blk; in do_brel_delete() 538 blk_t block, offset; in do_irel_add_ref()
|