Home
last modified time | relevance | path

Searched refs:bg_desc (Results 1 – 4 of 4) sorted by relevance

/external/qemu/distrib/ext4_utils/src/
Dext4_utils.c124 aux_info.bg_desc = calloc(info.block_size, aux_info.bg_desc_blocks); in ext4_create_fs_aux_info()
125 if (!aux_info.bg_desc) in ext4_create_fs_aux_info()
139 free(aux_info.bg_desc); in ext4_free_fs_aux_info()
232 sparse_file_add_data(ext4_sparse_file, aux_info.bg_desc, in ext4_fill_in_sb()
238 aux_info.bg_desc[i].bg_block_bitmap = group_start_block + header_size; in ext4_fill_in_sb()
239 aux_info.bg_desc[i].bg_inode_bitmap = group_start_block + header_size + 1; in ext4_fill_in_sb()
240 aux_info.bg_desc[i].bg_inode_table = group_start_block + header_size + 2; in ext4_fill_in_sb()
242 aux_info.bg_desc[i].bg_free_blocks_count = sb->s_blocks_per_group; in ext4_fill_in_sb()
243 aux_info.bg_desc[i].bg_free_inodes_count = sb->s_inodes_per_group; in ext4_fill_in_sb()
244 aux_info.bg_desc[i].bg_used_dirs_count = 0; in ext4_fill_in_sb()
[all …]
Dext4fixup.c231 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); in read_ext()
267 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) + in read_inode()
349 inode_bitmap_block_num = aux_info.bg_desc[bg_num].bg_inode_bitmap; in check_inode_bitmap()
392 … aux_info.bg_desc[i].bg_free_inodes_count += (new_inodes_per_group - sb.s_inodes_per_group); in update_superblocks_and_bg_desc()
437 ret = write(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); in update_superblocks_and_bg_desc()
Dext2simg.c82 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); in read_ext()
137 ret = lseek64(fd, (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap, in build_sparse_ext()
Dext4_utils.h103 struct ext2_group_desc *bg_desc; member