[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 02/11] mirror: Fix bdrv_has_zero_init() use
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH v2 02/11] mirror: Fix bdrv_has_zero_init() use |
Date: |
Thu, 25 Jul 2019 18:24:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
On 25.07.19 18:21, Max Reitz wrote:
> On 25.07.19 17:28, Maxim Levitsky wrote:
[...]
>> For example, QMP reference states that MIRROR_SYNC_MODE_TOP copies data in
>> the topmost image to the destination.
>> If there is only the topmost image, I could image the caller assume that
>> target is identical to the source.
>
> It doesn’t say that it copies the data in the topmost image. It says it
> copies the data *allocated* in the topmost image. It follows that it
> will not copy any data that is not allocated.
(I just saw that MirrorSyncMode indeed just says “data in the topmost
image”. I was looking at DriveBackup and blockdev-backup, which say
“only the sectors allocated in the topmost image”. I think what
DriveBackup and blockdev-backup say takes precedence here.)
Max
signature.asc
Description: OpenPGP digital signature