qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 05/12] mirror: perform COW if the cluster siz


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 05/12] mirror: perform COW if the cluster size is bigger than the granularity
Date: Mon, 21 Jan 2013 15:10:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Il 18/01/2013 17:22, Paolo Bonzini ha scritto:
>> > If it does, we mark the whole cluster dirty now, but in the cow_bitmap
>> > it's still marked at present on the target. When restarting the job,
>> > wouldn't it copy only the start of the cluster next time and corrupt the
>> > rest of it?
> Yes, very good catch.

Actually, it works.  Because the whole destination cluster is marked
dirty, all of it is ultimately copied correctly.  The special handling
of COW is required for all others sources of dirty data, where the dirty
bitmap can include a subset of a destination cluster, but not in this case.

I'll include the testcase, and test the patch I attached to my previous
message.

Paolo



reply via email to

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