Home | History | Annotate | Download | only in ext4_utils

Lines Matching refs:info

42 extern struct fs_info info;
73 ret = lseek64(fd, info.len, SEEK_SET);
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)
89 printf(" Size: %llu\n", info.len);
90 printf(" Block size: %d\n", info.block_size);
91 printf(" Blocks per group: %d\n", info.blocks_per_group);
92 printf(" Inodes per group: %d\n", info.inodes_per_group);
93 printf(" Inode size: %d\n", info.inode_size);
94 printf(" Label: %s\n", info.label);
97 printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks);
124 block_bitmap = malloc(info.block_size);
129 sparse_file_add_file(info.sparse_file, filename, 0,
130 info.block_size * aux_info.first_data_block, 0);
133 u32 first_block = aux_info.first_data_block + i * info.blocks_per_group;
134 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block);
136 ret = lseek64(fd, (u64)info.block_size * aux_info.bg_desc[i].bg_block_bitmap,
141 ret = read(fd, block_bitmap, info.block_size);
144 if (ret != (int)info.block_size)
154 sparse_file_add_file(info.sparse_file, filename,
155 (u64)info.block_size * start_block,
156 info.block_size * len_blocks, start_block);
168 sparse_file_add_file(info.sparse_file, filename,
169 (u64)info.block_size * start_block,
170 info.block_size * len_blocks, start_block);
233 info.sparse_file = sparse_file_new(info.block_size, info.len);
252 sparse_file_destroy(info.sparse_file);