Lines Matching refs:info

42 struct fs_info info;  variable
81 if (!(info.feat_ro_compat & EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER)) in ext4_bg_has_super_block()
112 aux_info.first_data_block = (info.block_size > 1024) ? 0 : 1; in ext4_create_fs_aux_info()
113 aux_info.len_blocks = info.len / info.block_size; in ext4_create_fs_aux_info()
114 aux_info.inode_table_blocks = DIV_ROUND_UP(info.inodes_per_group * info.inode_size, in ext4_create_fs_aux_info()
115 info.block_size); in ext4_create_fs_aux_info()
117 info.blocks_per_group); in ext4_create_fs_aux_info()
118 aux_info.blocks_per_ind = info.block_size / sizeof(u32); in ext4_create_fs_aux_info()
124 info.block_size); in ext4_create_fs_aux_info()
128 u32 last_group_size = aux_info.len_blocks == info.blocks_per_group in ext4_create_fs_aux_info()
129 ? aux_info.len_blocks : aux_info.len_blocks % info.blocks_per_group; in ext4_create_fs_aux_info()
133 info.bg_desc_reserve_blocks; in ext4_create_fs_aux_info()
145 aux_info.sb_zero = (struct ext4_super_block *)calloc(1, info.block_size); in ext4_create_fs_aux_info()
154 aux_info.sb_block = (struct ext4_super_block *)calloc(1, info.block_size); in ext4_create_fs_aux_info()
158 if (info.block_size > 1024) in ext4_create_fs_aux_info()
169 aux_info.bg_desc = (struct ext2_group_desc *)calloc(info.block_size, aux_info.bg_desc_blocks); in ext4_create_fs_aux_info()
196 ext4_parse_sb(sb, &info); in ext4_parse_sb_info()
251 if (info.len < 0) in get_file_size()
252 reserve_len = -info.len; in get_file_size()
278 ret = lseek64(fd, info.len, SEEK_SET); in read_ext()
282 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET); in read_ext()
286 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks); in read_ext()
289 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks) in read_ext()
294 printf(" Size: %" PRIu64 "\n", info.len); in read_ext()
295 printf(" Block size: %d\n", info.block_size); in read_ext()
296 printf(" Blocks per group: %d\n", info.blocks_per_group); in read_ext()
297 printf(" Inodes per group: %d\n", info.inodes_per_group); in read_ext()
298 printf(" Inode size: %d\n", info.inode_size); in read_ext()
299 printf(" Label: %s\n", info.label); in read_ext()
302 printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks); in read_ext()