qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 11/18] migration: Create migrate_block_bitmap_mapping() functi


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PULL 11/18] migration: Create migrate_block_bitmap_mapping() function
Date: Wed, 3 May 2023 22:00:24 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 03.05.23 20:15, Juan Quintela wrote:
Kevin Wolf <kwolf@redhat.com> wrote:
Am 27.04.2023 um 17:22 hat Juan Quintela geschrieben:
Notice that we changed the test of ->has_block_bitmap_mapping
for the test that block_bitmap_mapping is not NULL.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>

---

Make it return const (vladimir)

(I don't think this part was actually meant for the commit message)

yeap.  My understandig has always been that this is the way to put
commenst for the email.

This commit broke qemu-iotests 300 on master. Please have a look.

     if (s->parameters.has_block_bitmap_mapping)
         return s->parameters.block_bitmap_mapping;

The test has a case where s->parameters.has_block_bitmap_mapping is true
but s->parameters.block_bitmap_mapping is false.

If that combination is right, then we need two functions becase the
asumtion that I did is false.

Vladimir?


Ah right. I forget that the field is list and for lists it's OK to be NULL with 
corresponding has_* = false, as that's the only way to distinguish specified 
empty list and unspecified list.


--
Best regards,
Vladimir




reply via email to

[Prev in Thread] Current Thread [Next in Thread]