/external/e2fsprogs/lib/ext2fs/ |
D | alloc_tables.c | 88 blk64_t group_blk, start_blk, last_blk, new_blk; in ext2fs_allocate_group_table() local 149 1, bmap, &new_blk); in ext2fs_allocate_group_table() 152 last_blk, 1, bmap, &new_blk); in ext2fs_allocate_group_table() 155 ext2fs_mark_block_bitmap2(bmap, new_blk); in ext2fs_allocate_group_table() 156 ext2fs_block_bitmap_loc_set(fs, group, new_blk); in ext2fs_allocate_group_table() 158 dgrp_t gr = ext2fs_group_of_blk2(fs, new_blk); in ext2fs_allocate_group_table() 182 1, bmap, &new_blk); in ext2fs_allocate_group_table() 185 last_blk, 1, bmap, &new_blk); in ext2fs_allocate_group_table() 188 ext2fs_mark_block_bitmap2(bmap, new_blk); in ext2fs_allocate_group_table() 189 ext2fs_inode_bitmap_loc_set(fs, group, new_blk); in ext2fs_allocate_group_table() [all …]
|
D | expanddir.c | 39 blk64_t new_blk; in expand_dir_proc() local 50 new_blk = es->goal+1; in expand_dir_proc() 53 retval = ext2fs_new_block2(fs, es->goal, 0, &new_blk); in expand_dir_proc() 59 ext2fs_block_alloc_stats2(fs, new_blk, +1); in expand_dir_proc() 68 retval = ext2fs_write_dir_block4(fs, new_blk, block, 0, in expand_dir_proc() 72 retval = ext2fs_zero_blocks2(fs, new_blk, 1, NULL, NULL); in expand_dir_proc() 74 es->goal = new_blk; in expand_dir_proc() 79 *blocknr = new_blk; in expand_dir_proc()
|
D | block.c | 401 blk64_t blk, new_blk; in ext2fs_block_iterate3() local 491 new_blk = blk; in ext2fs_block_iterate3() 492 r = (*ctx.func)(fs, &new_blk, blockcnt, in ext2fs_block_iterate3() 501 new_blk, uninit); in ext2fs_block_iterate3()
|
/external/e2fsprogs/e2fsck/ |
D | pass3.c | 794 blk64_t new_blk; in expand_dir_proc() local 814 new_blk = last_blk + 1; in expand_dir_proc() 818 &new_blk); in expand_dir_proc() 824 ext2fs_block_alloc_stats2(fs, new_blk, +1); in expand_dir_proc() 826 last_blk = new_blk; in expand_dir_proc() 835 retval = ext2fs_write_dir_block4(fs, new_blk, block, 0, in expand_dir_proc() 839 retval = ext2fs_zero_blocks2(fs, new_blk, 1, NULL, NULL); in expand_dir_proc() 844 *blocknr = new_blk; in expand_dir_proc() 845 ext2fs_mark_block_bitmap2(ctx->block_found_map, new_blk); in expand_dir_proc()
|
D | pass1b.c | 915 blk64_t blk, new_blk; in clone_file() local 960 new_blk = blk; in clone_file() 961 if (blk && (clone_file_block(fs, &new_blk, in clone_file() 964 ext2fs_file_acl_block_set(fs, EXT2_INODE(&dp->inode), new_blk); in clone_file()
|
D | pass1.c | 4048 blk64_t new_blk; in handle_fs_bad_blocks() local 4054 new_blk = ext2fs_block_bitmap_loc(fs, i); in handle_fs_bad_blocks() 4056 1, &new_blk); in handle_fs_bad_blocks() 4057 ext2fs_block_bitmap_loc_set(fs, i, new_blk); in handle_fs_bad_blocks() 4060 new_blk = ext2fs_inode_bitmap_loc(fs, i); in handle_fs_bad_blocks() 4062 1, &new_blk); in handle_fs_bad_blocks() 4063 ext2fs_inode_bitmap_loc_set(fs, i, new_blk); in handle_fs_bad_blocks() 4066 new_blk = ext2fs_inode_table_loc(fs, i); in handle_fs_bad_blocks() 4069 &new_blk); in handle_fs_bad_blocks() 4070 ext2fs_inode_table_loc_set(fs, i, new_blk); in handle_fs_bad_blocks()
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 1591 rfs->new_blk = rfs->new_fs->super->s_first_data_block; in init_block_alloc() 1596 rfs->new_blk = ext2fs_blocks_count(rfs->old_fs->super); in init_block_alloc() 1605 if (rfs->new_blk >= ext2fs_blocks_count(fs->super)) { in get_new_block() 1615 rfs->new_blk = fs->super->s_first_data_block; in get_new_block() 1618 if (ext2fs_test_block_bitmap2(fs->block_map, rfs->new_blk) || in get_new_block() 1620 rfs->new_blk) || in get_new_block() 1622 (rfs->new_blk < ext2fs_blocks_count(rfs->old_fs->super)) && in get_new_block() 1624 rfs->new_blk))) { in get_new_block() 1625 rfs->new_blk++; in get_new_block() 1628 return rfs->new_blk; in get_new_block() [all …]
|
D | resize2fs.h | 121 blk64_t new_blk; member
|
/external/e2fsprogs/misc/ |
D | tune2fs.c | 2311 blk64_t blk, new_blk, goal; in move_block() local 2318 for (new_blk = blk = fs->super->s_first_data_block; in move_block() 2336 goal = new_blk; in move_block() 2338 retval = ext2fs_new_block2(fs, goal, NULL, &new_blk); in move_block() 2343 if (meta_data && !ext2fs_is_block_in_group(fs, group, new_blk)) { in move_block() 2349 ext2fs_mark_block_bitmap2(fs->block_map, new_blk); in move_block() 2357 bmv->new_loc = new_blk; in move_block() 2365 retval = io_channel_write_blk64(fs->io, new_blk, 1, buf); in move_block() 2397 blk64_t new_blk; in process_block() local 2402 new_blk = translate_block(*block_nr); in process_block() [all …]
|
/external/f2fs-tools/fsck/ |
D | fsck.c | 1662 struct f2fs_orphan_block *orphan_blk, *new_blk; in fsck_chk_orphan_node() local 1675 new_blk = calloc(BLOCK_SZ, 1); in fsck_chk_orphan_node() 1676 ASSERT(new_blk); in fsck_chk_orphan_node() 1704 new_blk->ino[new_entry_count++] = in fsck_chk_orphan_node() 1713 new_blk->entry_count = cpu_to_le32(new_entry_count); in fsck_chk_orphan_node() 1714 ret = dev_write_block(new_blk, start_blk + i); in fsck_chk_orphan_node() 1718 memset(new_blk, 0, BLOCK_SZ); in fsck_chk_orphan_node() 1721 free(new_blk); in fsck_chk_orphan_node()
|