/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 | 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 | brel.h | 13 blk_t new; 17 blk_t block_ref; 31 blk_t current; 37 errcode_t (*put)(ext2_brel brel, blk_t old, 43 errcode_t (*get)(ext2_brel brel, blk_t old, 55 errcode_t (*next)(ext2_brel brel, blk_t *old, 62 errcode_t (*move)(ext2_brel brel, blk_t old, blk_t new); 67 errcode_t (*delete)(ext2_brel brel, blk_t old); 76 errcode_t ext2fs_brel_memarray_create(char *name, blk_t max_block,
|
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, 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() 152 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, in clear_bad_block_proc() 154 blk_t ref_block EXT2FS_ATTR((unused)), in clear_bad_block_proc() 177 old_size = rec->max_ind_blocks * sizeof(blk_t); in clear_bad_block_proc() [all …]
|
D | brel_ma.c | 29 static errcode_t bma_put(ext2_brel brel, blk_t old, 31 static errcode_t bma_get(ext2_brel brel, blk_t old, 34 static errcode_t bma_next(ext2_brel brel, blk_t *old, 36 static errcode_t bma_move(ext2_brel brel, blk_t old, blk_t new); 37 static errcode_t bma_delete(ext2_brel brel, blk_t old); 42 blk_t max_block; 46 errcode_t ext2fs_brel_memarray_create(char *name, blk_t max_block, in ext2fs_brel_memarray_create() 104 static errcode_t bma_put(ext2_brel brel, blk_t old, in bma_put() 116 static errcode_t bma_get(ext2_brel brel, blk_t old, in bma_get() 136 static errcode_t bma_next(ext2_brel brel, blk_t *old, in bma_next() [all …]
|
D | ext2fs.h | 67 typedef __u32 blk_t; typedef 129 blk_t blk; 203 errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks); 498 #define EXT2FS_COMPRESSED_BLKADDR ((blk_t) -1) 555 extern errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, 556 ext2fs_block_bitmap map, blk_t *ret); 557 extern errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start, 558 blk_t finish, int num, 560 blk_t *ret); 561 extern errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, [all …]
|
D | block.c | 24 blk_t *blocknr, 26 blk_t ref_blk, 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() 90 block_nr = (blk_t *) ctx->ind_buf; in block_iterate_ind() 102 offset += sizeof(blk_t); in block_iterate_ind() 116 offset += sizeof(blk_t); in block_iterate_ind() 136 static int block_iterate_dind(blk_t *dind_block, blk_t ref_block, in block_iterate_dind() 141 blk_t *block_nr; in block_iterate_dind() 167 block_nr = (blk_t *) ctx->dind_buf; in block_iterate_dind() [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 | alloc.c | 35 blk_t i; in check_block_uninit() 36 blk_t blk, super_blk, old_desc_blk, new_desc_blk; in check_block_uninit() 149 errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, in ext2fs_new_block() 150 ext2fs_block_bitmap map, blk_t *ret) in ext2fs_new_block() 152 blk_t i; in ext2fs_new_block() 188 errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, in ext2fs_alloc_block() 189 char *block_buf, blk_t *ret) in ext2fs_alloc_block() 192 blk_t block; in ext2fs_alloc_block() 209 block = (blk_t) new; in ext2fs_alloc_block() 235 errcode_t ext2fs_get_free_blocks(ext2_filsys fs, blk_t start, blk_t finish, in ext2fs_get_free_blocks() [all …]
|
D | read_bb_file.c | 36 blk_t blk, in ext2fs_read_bb_FILE2() 41 blk_t blockno; in ext2fs_read_bb_FILE2() 75 void (*invalid)(ext2_filsys, blk_t); 78 static void call_compat_invalid(ext2_filsys fs, blk_t blk, in call_compat_invalid() 95 void (*invalid)(ext2_filsys fs, blk_t blk)) in ext2fs_read_bb_FILE()
|
D | alloc_tables.c | 36 static blk_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk_t start_blk, in flexbg_offset() 41 blk_t last_blk, first_free = 0; in flexbg_offset() 85 blk_t group_blk, start_blk, last_blk, new_blk, blk; in ext2fs_allocate_group_table() 122 blk_t prev_block = 0; in ext2fs_allocate_group_table() 150 blk_t prev_block = 0; in ext2fs_allocate_group_table() 181 blk_t prev_block = 0; in ext2fs_allocate_group_table()
|
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 | 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 | ext2fsP.h | 67 blk_t buffer_blk; 82 blk_t *blocknr, 84 blk_t ref_block,
|
D | expanddir.c | 28 blk_t *blocknr, in expand_dir_proc() 30 blk_t ref_block EXT2FS_ATTR((unused)), in expand_dir_proc() 35 blk_t new_blk; in expand_dir_proc() 36 static blk_t last_blk = 0; in expand_dir_proc()
|
D | mkjournal.c | 93 blk_t size, int flags) in write_journal_file() 98 blk_t i; in write_journal_file() 148 errcode_t ext2fs_zero_blocks(ext2_filsys fs, blk_t blk, int num, in ext2fs_zero_blocks() 149 blk_t *ret_blk, int *ret_count) in ext2fs_zero_blocks() 201 blk_t goal; 202 blk_t blk_to_zero; 209 blk_t *blocknr, in mkjournal_proc() 211 blk_t ref_block EXT2FS_ATTR((unused)), in mkjournal_proc() 216 blk_t new_blk; in mkjournal_proc() 275 blk_t size, int flags) in write_journal_inode() [all …]
|
D | dirblock.c | 22 errcode_t ext2fs_read_dir_block2(ext2_filsys fs, blk_t block, in ext2fs_read_dir_block2() 61 errcode_t ext2fs_read_dir_block(ext2_filsys fs, blk_t block, in ext2fs_read_dir_block() 68 errcode_t ext2fs_write_dir_block2(ext2_filsys fs, blk_t block, in ext2fs_write_dir_block2() 110 errcode_t ext2fs_write_dir_block(ext2_filsys fs, blk_t block, in ext2fs_write_dir_block()
|
/external/e2fsprogs/e2fsck/ |
D | ea_refcount.c | 27 blk_t ea_blk; 32 blk_t count; 33 blk_t size; 34 blk_t cursor; 113 blk_t blk, int pos) in insert_refcount_el() 117 blk_t new_size = 0; in insert_refcount_el() 155 blk_t blk, int create) in get_refcount_el() 159 blk_t lowval, highval; in get_refcount_el() 229 errcode_t ea_refcount_fetch(ext2_refcount_t refcount, blk_t blk, in ea_refcount_fetch() 243 errcode_t ea_refcount_increment(ext2_refcount_t refcount, blk_t blk, int *ret) in ea_refcount_increment() [all …]
|
D | e2fsck.h | 114 blk_t phys; 116 blk_t parent; 210 blk_t use_superblock; /* sb requested by user */ 211 blk_t superblock; /* sb used to open fs */ 415 extern errcode_t ea_refcount_fetch(ext2_refcount_t refcount, blk_t blk, 418 blk_t blk, int *ret); 420 blk_t blk, int *ret); 422 blk_t blk, int count); 423 extern blk_t ext2fs_get_refcount_size(ext2_refcount_t refcount); 425 extern blk_t ea_refcount_intr_next(ext2_refcount_t refcount, int *ret); [all …]
|
D | emptydir.c | 28 blk_t logblk; 29 blk_t freed_blocks; 119 int empty_pass1(ext2_filsys fs, blk_t *block_nr, e2_blkcnt_t blockcnt, in empty_pass1() 120 blk_t ref_block, int ref_offset, void *priv_data) in empty_pass1() 123 blk_t block, new_block; in empty_pass1()
|
D | pass1b.c | 57 blk_t block; 85 static int process_pass1b_block(ext2_filsys fs, blk_t *blocknr, 86 e2_blkcnt_t blockcnt, blk_t ref_blk, 92 static int check_if_fs_block(e2fsck_t ctx, blk_t test_blk); 118 static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk, in add_dupe() 330 blk_t *block_nr, in process_pass1b_block() 332 blk_t ref_blk EXT2FS_ATTR((unused)), in process_pass1b_block() 548 static void decrement_badcount(e2fsck_t ctx, blk_t block, struct dup_block *p) in decrement_badcount() 557 blk_t *block_nr, in delete_file_block() 559 blk_t ref_block EXT2FS_ATTR((unused)), in delete_file_block() [all …]
|
/external/e2fsprogs/resize/ |
D | resize2fs.h | 102 blk_t new_blk; 125 extern errcode_t resize_fs(ext2_filsys fs, blk_t *new_size, int flags, 132 blk_t new_size); 133 extern blk_t calculate_minimum_resize_size(ext2_filsys fs); 149 blk_t *new_size, int flags);
|
/external/e2fsprogs/debugfs/ |
D | htree.c | 34 blk_t blk, char *buf) in htree_dump_leaf_node() 42 blk_t pblk; in htree_dump_leaf_node() 112 blk_t blk, char *buf, int level); 161 blk_t blk, char *buf, int level) in htree_dump_int_block() 165 blk_t pblk; in htree_dump_int_block() 202 blk_t blk; in do_htree_dump() 351 static int search_dir_block(ext2_filsys fs, blk_t *blocknr, 352 e2_blkcnt_t blockcnt, blk_t ref_blk, 387 static int search_dir_block(ext2_filsys fs, blk_t *blocknr, in search_dir_block() 389 blk_t ref_blk EXT2FS_ATTR((unused)), in search_dir_block()
|
/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()
|