Lines Matching refs:cluster_size
874 img->cluster_size, &ref->refcount_table); in init_refcount()
879 ret = ext2fs_get_arrayzero(1, img->cluster_size, &ref->refcount_block); in init_refcount()
904 image->cluster_size = fs->blocksize; in initialize_qcow2_image()
915 offset = align_offset(header_size, image->cluster_size); in initialize_qcow2_image()
927 offset += align_offset(l1_size * sizeof(blk64_t), image->cluster_size); in initialize_qcow2_image()
938 offset += image->cluster_size; in initialize_qcow2_image()
944 offset += image->cluster_size; in initialize_qcow2_image()
996 memset(table->data, 0, img->cluster_size); in put_used_table()
1023 generic_write(fd, (char *)table->data, image->cluster_size, in flush_l2_cache()
1026 seek += image->cluster_size; in flush_l2_cache()
1110 img->cluster_size, NO_BLK); in update_refcount()
1111 memset(ref->refcount_block, 0, img->cluster_size); in update_refcount()
1144 generic_write(fd, (char *)ref->refcount_block, img->cluster_size, in sync_refcount()
1172 img->cluster_size); in output_qcow2_meta_data_blocks()
1178 blk = end + img->cluster_size; in output_qcow2_meta_data_blocks()
1179 for (offset = 0; offset <= end; offset += img->cluster_size) { in output_qcow2_meta_data_blocks()
1181 blk += img->cluster_size; in output_qcow2_meta_data_blocks()
1186 end += img->cluster_size; in output_qcow2_meta_data_blocks()
1215 offset += img->cluster_size; in output_qcow2_meta_data_blocks()
1237 offset + img->cluster_size)) { in output_qcow2_meta_data_blocks()
1238 offset += img->cluster_size; in output_qcow2_meta_data_blocks()
1240 offset + img->cluster_size)) { in output_qcow2_meta_data_blocks()
1241 offset += img->cluster_size; in output_qcow2_meta_data_blocks()
1250 offset += img->cluster_size; in output_qcow2_meta_data_blocks()
1255 offset += img->cluster_size; in output_qcow2_meta_data_blocks()