On 18/07/2016 09:55, Peter Lieven wrote:
> Am 16.07.2016 um 15:38 schrieb Paolo Bonzini:
>>
>> On 30/06/2016 13:07, Peter Lieven wrote:
>>> +static void
>>> +iscsi_allocmap_update(IscsiLun *iscsilun, int64_t sector_num,
>>> + int nb_sectors, bool allocated, bool valid)
>>>
Am 16.07.2016 um 15:38 schrieb Paolo Bonzini:
On 30/06/2016 13:07, Peter Lieven wrote:
+static void
+iscsi_allocmap_update(IscsiLun *iscsilun, int64_t sector_num,
+ int nb_sectors, bool allocated, bool valid)
{
int64_t cluster_num, nb_clusters;
-if (iscsilun->al
On 30/06/2016 13:07, Peter Lieven wrote:
> +static void
> +iscsi_allocmap_update(IscsiLun *iscsilun, int64_t sector_num,
> + int nb_sectors, bool allocated, bool valid)
> {
> int64_t cluster_num, nb_clusters;
> -if (iscsilun->allocationmap == NULL) {
> +
> +if (
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