Lines Matching refs:info
51 struct fs_info info; variable
130 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
182 offset = (unsigned long long)info.block_size * (aux_info.first_data_block in block_device_write_sb()
183 + i * info.blocks_per_group); in block_device_write_sb()
197 if (info.block_device) in write_ext4_image()
204 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
205 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
206 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
207 info.block_size); in ext4_create_fs_aux_info()
209 info.blocks_per_group); in ext4_create_fs_aux_info()
210 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
216 info.block_size); in ext4_create_fs_aux_info()
220 u32 last_group_size = aux_info.len_blocks % info.blocks_per_group; in ext4_create_fs_aux_info()
224 info.bg_desc_reserve_blocks; in ext4_create_fs_aux_info()
236 aux_info.sb_zero = calloc(1, info.block_size); in ext4_create_fs_aux_info()
245 aux_info.sb_block = calloc(1, info.block_size); in ext4_create_fs_aux_info()
249 if (info.block_size > 1024) in ext4_create_fs_aux_info()
260 aux_info.bg_desc = calloc(info.block_size, aux_info.bg_desc_blocks); in ext4_create_fs_aux_info()
285 sb->s_inodes_count = info.inodes_per_group * aux_info.groups; in ext4_fill_in_sb()
291 sb->s_log_block_size = log_2(info.block_size / 1024); in ext4_fill_in_sb()
292 sb->s_obso_log_frag_size = log_2(info.block_size / 1024); in ext4_fill_in_sb()
293 sb->s_blocks_per_group = info.blocks_per_group; in ext4_fill_in_sb()
294 sb->s_obso_frags_per_group = info.blocks_per_group; in ext4_fill_in_sb()
295 sb->s_inodes_per_group = info.inodes_per_group; in ext4_fill_in_sb()
312 sb->s_inode_size = info.inode_size; in ext4_fill_in_sb()
314 sb->s_feature_compat = info.feat_compat; in ext4_fill_in_sb()
315 sb->s_feature_incompat = info.feat_incompat; in ext4_fill_in_sb()
316 sb->s_feature_ro_compat = info.feat_ro_compat; in ext4_fill_in_sb()
325 generate_sha1_uuid("extandroid/make_ext4fs", info.label, sb->s_uuid); in ext4_fill_in_sb()
328 strncpy(sb->s_volume_name, info.label, sizeof(sb->s_volume_name)); in ext4_fill_in_sb()
332 sb->s_reserved_gdt_blocks = info.bg_desc_reserve_blocks; in ext4_fill_in_sb()
337 if (info.feat_compat & EXT4_FEATURE_COMPAT_HAS_JOURNAL) in ext4_fill_in_sb()
358 sb->s_raid_stride = info.flash_logical_block_size / info.block_size; in ext4_fill_in_sb()
360 if (info.flash_logical_block_size != 0 && info.flash_logical_block_size < 8192) { in ext4_fill_in_sb()
361 sb->s_raid_stride = 8192 / info.block_size; in ext4_fill_in_sb()
365 sb->s_raid_stripe_width = info.flash_erase_block_size / info.block_size; in ext4_fill_in_sb()
371 info.blocks_per_group; in ext4_fill_in_sb()
375 aux_info.backup_sb[i] = calloc(info.block_size, 1); in ext4_fill_in_sb()
379 ext4_queue_sb(group_start_block, info.block_device ? in ext4_fill_in_sb()
383 aux_info.bg_desc_blocks * info.block_size, in ext4_fill_in_sb()
385 header_size = 1 + aux_info.bg_desc_blocks + info.bg_desc_reserve_blocks; in ext4_fill_in_sb()
405 ext4_queue_sb(aux_info.first_data_block, info.block_device ? in ext4_fill_in_sb()
412 sparse_file_add_data(ext4_sparse_file, sb, info.block_size, start_block); in ext4_queue_sb()
423 ext4_parse_sb(sb, &info); in ext4_parse_sb_info()
448 info.blocks_per_group; in ext4_create_resize_inode()
451 u32 reserved_block_len = info.bg_desc_reserve_blocks; in ext4_create_resize_inode()
477 info.journal_blocks * info.block_size, in ext4_create_journal_inode()
478 info.journal_blocks * info.block_size); in ext4_create_journal_inode()
490 jsb->s_blocksize = htonl(info.block_size); in ext4_create_journal_inode()
491 jsb->s_maxlen = htonl(info.journal_blocks); in ext4_create_journal_inode()
572 if (info.len < 0) in get_file_size()
573 reserve_len = -info.len; in get_file_size()
613 ret = lseek64(fd, info.len, SEEK_SET); in read_ext()
617 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); in read_ext()
621 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); in read_ext()
624 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks) in read_ext()
629 printf(" Size: %"PRIu64"\n", info.len); in read_ext()
630 printf(" Block size: %d\n", info.block_size); in read_ext()
631 printf(" Blocks per group: %d\n", info.blocks_per_group); in read_ext()
632 printf(" Inodes per group: %d\n", info.inodes_per_group); in read_ext()
633 printf(" Inode size: %d\n", info.inode_size); in read_ext()
634 printf(" Label: %s\n", info.label); in read_ext()
637 printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks); in read_ext()