On 03.05.23 21:10, Juan Quintela wrote:
It is valid that params->has_block_bitmap_mapping is true and
params->block_bitmap_mapping is NULL.  So we can't use the trick of
having a single function.

Move to two functions one for each value and the tests are fixed.

Fixes: b804b35b1c8a0edfd127ac20819c234be55ac7fc
        migration: Create migrate_block_bitmap_mapping() function

Reported-by: Kevin Wolf<[email protected]>
Signed-off-by: Juan Quintela<[email protected]>

Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>

--
Best regards,
Vladimir


Reply via email to