/external/e2fsprogs/lib/ext2fs/ |
D | ind_block.c | 26 blk_t *block_nr; in ext2fs_read_ind_block() local 40 block_nr = (blk_t *) buf; in ext2fs_read_ind_block() 41 for (i = 0; i < limit; i++, block_nr++) in ext2fs_read_ind_block() 42 *block_nr = ext2fs_swab32(*block_nr); in ext2fs_read_ind_block() 50 blk_t *block_nr; in ext2fs_write_ind_block() local 59 block_nr = (blk_t *) buf; in ext2fs_write_ind_block() 60 for (i = 0; i < limit; i++, block_nr++) in ext2fs_write_ind_block() 61 *block_nr = ext2fs_swab32(*block_nr); in ext2fs_write_ind_block()
|
D | bb_inode.c | 44 static int set_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 48 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, 152 static int clear_bad_block_proc(ext2_filsys fs, blk_t *block_nr, in clear_bad_block_proc() argument 163 if (!*block_nr) in clear_bad_block_proc() 169 if (*block_nr >= fs->super->s_blocks_count || in clear_bad_block_proc() 170 *block_nr < fs->super->s_first_data_block) { in clear_bad_block_proc() 171 *block_nr = 0; in clear_bad_block_proc() 188 rec->ind_blocks[rec->ind_blocks_size++] = *block_nr; in clear_bad_block_proc() 194 ext2fs_block_alloc_stats(fs, *block_nr, -1); in clear_bad_block_proc() 196 *block_nr = 0; in clear_bad_block_proc() [all …]
|
D | block.c | 64 blk_t *block_nr; in block_iterate_ind() local 90 block_nr = (blk_t *) ctx->ind_buf; in block_iterate_ind() 93 for (i = 0; i < limit; i++, ctx->bcount++, block_nr++) { in block_iterate_ind() 94 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount, in block_iterate_ind() 105 for (i = 0; i < limit; i++, ctx->bcount++, block_nr++) { in block_iterate_ind() 106 if (*block_nr == 0) in block_iterate_ind() 108 flags = (*ctx->func)(ctx->fs, block_nr, ctx->bcount, in block_iterate_ind() 141 blk_t *block_nr; in block_iterate_dind() local 167 block_nr = (blk_t *) ctx->dind_buf; in block_iterate_dind() 170 for (i = 0; i < limit; i++, block_nr++) { in block_iterate_dind() [all …]
|
D | read_bb.c | 40 static int mark_bad_block(ext2_filsys fs, blk_t *block_nr, in mark_bad_block() argument 51 if ((*block_nr < fs->super->s_first_data_block) || in mark_bad_block() 52 (*block_nr >= fs->super->s_blocks_count)) in mark_bad_block() 55 rb->err = ext2fs_badblocks_list_add(rb->bb_list, *block_nr); in mark_bad_block()
|
D | inode.c | 526 unsigned long group, block, block_nr, offset; in ext2fs_read_inode_full() local 560 block_nr = fs->image_header->offset_inode / fs->blocksize; in ext2fs_read_inode_full() 561 block_nr += (ino - 1) / inodes_per_block; in ext2fs_read_inode_full() 574 block_nr = fs->group_desc[(unsigned)group].bg_inode_table + in ext2fs_read_inode_full() 590 if (block_nr != fs->icache->buffer_blk) { in ext2fs_read_inode_full() 591 retval = io_channel_read_blk(io, block_nr, 1, in ext2fs_read_inode_full() 595 fs->icache->buffer_blk = block_nr; in ext2fs_read_inode_full() 604 block_nr++; in ext2fs_read_inode_full() 632 unsigned long group, block, block_nr, offset; in ext2fs_write_inode_full() local 695 block_nr = fs->group_desc[(unsigned) group].bg_inode_table + block; in ext2fs_write_inode_full() [all …]
|
D | bmove.c | 35 static int process_block(ext2_filsys fs, blk_t *block_nr, in process_block() argument 45 block = orig = *block_nr; in process_block() 72 *block_nr = block; in process_block()
|
/external/e2fsprogs/e2fsck/ |
D | badblocks.c | 16 static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt, 118 blk_t *block_nr, in check_bb_inode_blocks() argument 122 if (!*block_nr) in check_bb_inode_blocks() 128 if (*block_nr >= fs->super->s_blocks_count || in check_bb_inode_blocks() 129 *block_nr < fs->super->s_first_data_block) { in check_bb_inode_blocks() 131 "Cleared.\n"), *block_nr); in check_bb_inode_blocks() 132 *block_nr = 0; in check_bb_inode_blocks()
|
D | pass1b.c | 330 blk_t *block_nr, in process_pass1b_block() argument 339 if (HOLE_BLKADDR(*block_nr)) in process_pass1b_block() 344 if (!ext2fs_test_block_bitmap(ctx->block_dup_map, *block_nr)) in process_pass1b_block() 349 p->pctx->blk = *block_nr; in process_pass1b_block() 355 add_dupe(ctx, p->ino, *block_nr, p->inode); in process_pass1b_block() 557 blk_t *block_nr, in delete_file_block() argument 571 if (HOLE_BLKADDR(*block_nr)) in delete_file_block() 574 if (ext2fs_test_block_bitmap(ctx->block_dup_map, *block_nr)) { in delete_file_block() 575 n = dict_lookup(&blk_dict, INT_TO_VOIDPTR(*block_nr)); in delete_file_block() 578 decrement_badcount(ctx, *block_nr, p); in delete_file_block() [all …]
|
D | swapfs.c | 34 static int swap_block(ext2_filsys fs, blk_t *block_nr, int blockcnt, in swap_block() argument 41 if (sb->isdir && (blockcnt >= 0) && *block_nr) { in swap_block() 42 retval = ext2fs_read_dir_block(fs, *block_nr, sb->dir_buf); in swap_block() 47 retval = ext2fs_write_dir_block(fs, *block_nr, sb->dir_buf); in swap_block() 59 if (*block_nr == sb->inode->i_block[EXT2_IND_BLOCK]) in swap_block() 64 if (*block_nr == sb->inode->i_block[EXT2_DIND_BLOCK]) in swap_block() 69 if (*block_nr == sb->inode->i_block[EXT2_TIND_BLOCK]) in swap_block()
|
D | emptydir.c | 119 int empty_pass1(ext2_filsys fs, blk_t *block_nr, e2_blkcnt_t blockcnt, in empty_pass1() argument 128 block = *block_nr; in empty_pass1() 144 *block_nr = new_block; in empty_pass1()
|
D | pass2.c | 717 blk_t block_nr = db->blk; in check_dir_block() local 750 cd->pctx.blk = block_nr; in check_dir_block() 759 block_nr = db->blk; in check_dir_block() 772 printf("In process_dir_block block %lu, #%d, inode %lu\n", block_nr, in check_dir_block() 777 cd->pctx.errcode = ext2fs_read_dir_block(fs, block_nr, buf); in check_dir_block() 803 dx_db->phys = block_nr; in check_dir_block() 1130 cd->pctx.errcode = ext2fs_write_dir_block(fs, block_nr, buf); in check_dir_block() 1151 blk_t *block_nr, in deallocate_inode_block() argument 1159 if (HOLE_BLKADDR(*block_nr)) in deallocate_inode_block() 1161 if ((*block_nr < fs->super->s_first_data_block) || in deallocate_inode_block() [all …]
|
D | rehash.c | 81 blk_t *block_nr, in fill_dir_block() argument 103 if (HOLE_BLKADDR(*block_nr)) { in fill_dir_block() 108 fd->err = ext2fs_read_dir_block(fs, *block_nr, dir); in fill_dir_block() 635 blk_t *block_nr, in write_dir_block() argument 645 if (*block_nr == 0) in write_dir_block() 649 blk = *block_nr; in write_dir_block() 652 *block_nr = 0; in write_dir_block() 660 wd->err = ext2fs_write_dir_block(fs, *block_nr, dir); in write_dir_block()
|
D | pass1.c | 61 static int process_bad_block(ext2_filsys fs, blk_t *block_nr, 2101 blk_t *block_nr, in process_block() argument 2109 blk_t blk = *block_nr; in process_block() 2202 blk = *block_nr = 0; in process_block() 2252 blk_t *block_nr, in process_bad_block() argument 2259 blk_t blk = *block_nr; in process_bad_block() 2284 *block_nr = 0; in process_bad_block() 2294 *block_nr = 0; in process_bad_block() 2302 *block_nr = 0; in process_bad_block() 2340 *block_nr = 0; in process_bad_block() [all …]
|
D | super.c | 57 blk_t *block_nr, in release_inode_block() argument 66 blk_t blk = *block_nr; in release_inode_block() 140 *block_nr = 0; in release_inode_block()
|
D | journal.c | 206 blk_t *block_nr, in process_journal_block() argument 213 blk_t blk = *block_nr; in process_journal_block()
|
/external/qemu/slirp-android/ |
D | tftp.c | 101 static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, in tftp_read_data() argument 121 lseek(fd, block_nr * 512, SEEK_SET); in tftp_read_data() 220 u_int16_t block_nr, in tftp_send_data() argument 228 if (block_nr < 1) { in tftp_send_data() 245 tp->x.tp_data.tp_block_nr = htons(block_nr); in tftp_send_data() 255 nobytes = tftp_read_data(spt, block_nr - 1, tp->x.tp_data.tp_buf, 512); in tftp_send_data()
|
/external/qemu/slirp/ |
D | tftp.c | 101 static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, in tftp_read_data() argument 121 lseek(fd, block_nr * 512, SEEK_SET); in tftp_read_data() 216 u_int16_t block_nr, in tftp_send_data() argument 224 if (block_nr < 1) { in tftp_send_data() 241 tp->x.tp_data.tp_block_nr = htons(block_nr); in tftp_send_data() 249 nobytes = tftp_read_data(spt, block_nr - 1, tp->x.tp_data.tp_buf, 512); in tftp_send_data()
|
/external/e2fsprogs/debugfs/ |
D | lsdel.c | 51 blk_t *block_nr, in lsdel_proc() argument 61 if (*block_nr < fs->super->s_first_data_block || in lsdel_proc() 62 *block_nr >= fs->super->s_blocks_count) { in lsdel_proc() 67 if (!ext2fs_test_block_bitmap(fs->block_map,*block_nr)) in lsdel_proc()
|
D | icheck.c | 34 blk_t *block_nr, in icheck_proc() argument 44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
|
D | debugfs.c | 1986 unsigned long group, block, block_nr, offset; in do_imap() local 2004 block_nr = current_fs->group_desc[(unsigned)group].bg_inode_table + in do_imap() 2010 block_nr, offset); in do_imap()
|
/external/e2fsprogs/misc/ |
D | e2image.c | 218 blk_t *block_nr, in process_dir_block() argument 228 ext2fs_mark_block_bitmap(meta_block_map, *block_nr); in process_dir_block() 230 ext2fs_mark_block_bitmap(scramble_block_map, *block_nr); in process_dir_block() 235 blk_t *block_nr, in process_file_block() argument 242 ext2fs_mark_block_bitmap(meta_block_map, *block_nr); in process_file_block()
|
D | tune2fs.c | 1129 blk_t *block_nr, in process_block() argument 1139 if (!ext2fs_test_block_bitmap(bmap, *block_nr)) in process_block() 1141 new_blk = translate_block(*block_nr); in process_block() 1143 *block_nr = new_blk; in process_block()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1241 static int process_block(ext2_filsys fs, blk_t *block_nr, in process_block() argument 1252 block = *block_nr; in process_block() 1256 *block_nr = new_block; in process_block()
|