On 18/07/2016 10:52, Peter Lieven wrote:
> +/* shrink to touch only completely contained clusters */
> +cl_num_shrinked = DIV_ROUND_UP(sector_num, iscsilun->cluster_sectors);
> +nb_cls_shrinked = (sector_num + nb_sectors) / iscsilun->cluster_sectors
> + - cl_num_s
until now the allocation map was used only as a hint if a cluster
is allocated or not. If a block was not allocated (or Qemu had
no info about the allocation status) a get_block_status call was
issued to check the allocation status and possibly avoid
a subsequent read of unallocated sectors. If a b