/system/extras/ext4_utils/ |
ext4_utils.c | 49 struct fs_aux_info aux_info; variable in typeref:struct:fs_aux_info 93 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; 94 aux_info.len_blocks = info.len / info.block_size; 95 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, 97 aux_info.groups = DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block, 99 aux_info.blocks_per_ind = info.block_size / sizeof(u32); 100 aux_info.blocks_per_dind = aux_info.blocks_per_ind * aux_info.blocks_per_ind [all...] |
ext2simg.c | 77 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); 81 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); 84 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks) 95 printf(" Blocks: %llu\n", aux_info.len_blocks); 96 printf(" Block groups: %d\n", aux_info.groups); 99 aux_info.sb->s_inodes_count - aux_info.sb->s_free_inodes_count, 100 aux_info.sb->s_inodes_count, 101 aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo [all...] |
indirect.c | 78 int ind_block_len = min((int)aux_info.blocks_per_ind, len); 95 int dind_block_len = min((int)aux_info.blocks_per_dind, len); 128 int ind_block_len = min((int)aux_info.blocks_per_ind, len); 158 int dind_block_len = min((int)aux_info.blocks_per_dind, len); 194 int len = min(*block_len, aux_info.blocks_per_ind); 226 int len = min(*block_len, aux_info.blocks_per_dind); 258 int len = min(*block_len, aux_info.blocks_per_tind); 291 u32 ind_block_len = min(aux_info.blocks_per_ind, len); 298 u32 dind_block_len = min(aux_info.blocks_per_dind, len); 305 u32 tind_block_len = min(aux_info.blocks_per_tind, len) [all...] |
allocate.c | 86 for (element = aux_info.xattrs; element != NULL; element = element->next) { 98 element->next = aux_info.xattrs; 99 aux_info.xattrs = element; 178 block += aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks + 1; 180 bg->inode_table = calloc(aux_info.inode_table_blocks, info.block_size); 185 aux_info.inode_table_blocks * info.block_size, block); 263 free_blocks(&aux_info.bgs[last_reg->bg], len); 268 free_blocks(&aux_info.bgs[last_reg->bg], last_reg->len); 285 int header_blocks = 2 + aux_info.inode_table_blocks; 290 header_blocks += 1 + aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks [all...] |
ext4fixup.c | 226 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); 230 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); 233 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks) 244 printf(" Blocks: %llu\n", aux_info.len_blocks); 245 printf(" Block groups: %d\n", aux_info.groups); 248 aux_info.sb->s_inodes_count - aux_info.sb->s_free_inodes_count, 249 aux_info.sb->s_inodes_count, 250 aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo [all...] |
make_ext4fs.c | 363 memset(&aux_info, 0, sizeof(aux_info)); 544 printf(" Blocks: %llu\n", aux_info.len_blocks); 545 printf(" Block groups: %d\n", aux_info.groups); 600 aux_info.sb->s_inodes_count - aux_info.sb->s_free_inodes_count, 601 aux_info.sb->s_inodes_count, 602 aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo, 603 aux_info.sb->s_blocks_count_lo) [all...] |
contents.c | 138 inode->i_flags |= aux_info.default_i_flags; 196 inode->i_flags |= aux_info.default_i_flags; 222 inode->i_flags |= aux_info.default_i_flags;
|
ext4_utils.h | 154 extern struct fs_aux_info aux_info;
|