Lines Matching refs:block_size
224 ret = lseek64(fd, info.block_size * (aux_info.first_data_block + 1), SEEK_SET);
228 ret = read(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks);
231 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks)
237 printf(" Block size: %d\n", info.block_size);
264 inode_offset = ((unsigned long long)aux_info.bg_desc[bg_num].bg_inode_table * info.block_size) +
284 off = block_num * info.block_size;
290 len=read(fd, block, info.block_size);
291 if (len != info.block_size) {
307 off = block_num * info.block_size;
313 len=write(fd, block, info.block_size);
314 if (len != info.block_size) {
398 if (new_inodes_per_group % (info.block_size/info.inode_size)) {
426 write_sb(fd, (unsigned long long)i * info.blocks_per_group * info.block_size + sb_offset, &sb);
428 ret = lseek64(fd, ((unsigned long long)i * info.blocks_per_group * info.block_size) +
429 (info.block_size * (aux_info.first_data_block + 1)), SEEK_SET);
434 ret = write(fd, aux_info.bg_desc, info.block_size * aux_info.bg_desc_blocks);
437 if (ret != (int)info.block_size * (int)aux_info.bg_desc_blocks)
457 sectors_per_block = info.block_size / INODE_BLOCK_SIZE;
479 sectors_per_block = info.block_size / INODE_BLOCK_SIZE;
481 indirect_block = (unsigned int *)malloc(info.block_size);
638 if (dirsize % info.block_size) {
639 critical_error("dirsize %d not a multiple of block_size %d. This is unexpected!\n",
640 dirsize, info.block_size);
643 num_blocks = dirsize / info.block_size;
657 * plus block_size/4 singly indirect blocks, which for a filesystem with 4K blocks
662 if (num_blocks > (info.block_size / 4 + EXT4_NDIR_BLOCKS)) {
670 read_block(fd, block_list[i], dirbuf + (i * info.block_size));
767 write_block(fd, block_list[i], dirbuf + (i * info.block_size));
814 if (info.inodes_per_blockgroup % (info.block_size/info.inode_size) == 0) {
826 new_inodes_per_group=ALIGN(info.inodes_per_group,(info.block_size/info.inode_size));