Lines Matching full:blocks
337 """Generate random refcount blocks and refcount table."""
339 """Return indices of clusters allocated for refcount blocks."""
346 # Indices of new refcount blocks necessary to cover clusters
355 and updated indices of clusters allocated for blocks and indices
356 of blocks.
358 blocks = set(init_blocks)
363 # the current number of refcount blocks
364 table_size = int(ceil((max(blocks) + 1) / float(size)))
373 # New refcount blocks necessary for clusters occupied by the
375 diff = set([c // block_size for c in table_clusters]) - blocks
376 blocks |= diff
378 # Allocate clusters for new refcount blocks
382 # Indices of new refcount blocks necessary to cover
384 diff = set([x // block_size for x in new]) - blocks
386 blocks |= diff
388 if int(ceil((max(blocks) + 1) / float(size))) > table_size:
392 if new_block_id not in blocks:
396 return table_clusters, blocks, clusters
444 # Clusters allocated for refcount blocks
446 # Indices of refcount blocks