Lines Matching refs:block_size
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)
239 printf(" Block size: %d\n", info.block_size);
266 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) +
286 off = block_num * info.block_size;
292 len=read(fd, block, info.block_size);
293 if (len != info.block_size) {
309 off = block_num * info.block_size;
315 len=write(fd, block, info.block_size);
316 if (len != info.block_size) {
400 if (new_inodes_per_group % (info.block_size/info.inode_size)) {
428 write_sb(fd, (unsigned long long)i * info.blocks_per_group * info.block_size + sb_offset, &sb);
430 ret = lseek64(fd, ((unsigned long long)i * info.blocks_per_group * info.block_size) +
431 (info.block_size * (aux_info.first_data_block + 1)), SEEK_SET);
436 ret = write(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks);
439 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks)
459 sectors_per_block = info.block_size / INODE_BLOCK_SIZE;
481 sectors_per_block = info.block_size / INODE_BLOCK_SIZE;
483 indirect_block = (unsigned int *)malloc(info.block_size);
640 if (dirsize % info.block_size) {
641 critical_error("dirsize %d not a multiple of block_size %d. This is unexpected!\n",
642 dirsize, info.block_size);
645 num_blocks = dirsize / info.block_size;
659 * plus block_size/4 singly indirect blocks, which for a filesystem with 4K blocks
664 if (num_blocks > (info.block_size / 4 + EXT4_NDIR_BLOCKS)) {
672 read_block(fd, block_list[i], dirbuf + (i * info.block_size));
769 write_block(fd, block_list[i], dirbuf + (i * info.block_size));
816 if (info.inodes_per_blockgroup % (info.block_size/info.inode_size) == 0) {
828 new_inodes_per_group=ALIGN(info.inodes_per_group,(info.block_size/info.inode_size));