Received: from eggs.gnu.org ([2001:4830:134:3::10]:56613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c44GR-0005LW-PF for qemu-devel@nongnu.org; Tue, 08 Nov 2016 06:08:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c44GN-0004gv-P3 for qemu-devel@nongnu.org; Tue, 08 Nov 2016 06:08:27 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:44606 helo=relay.sw.ru) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c44GN-0004gc-DH for qemu-devel@nongnu.org; Tue, 08 Nov 2016 06:08:23 -0500 References: <9e317525-b862-220f-258c-da59428d19d4@virtuozzo.com> <5dd4ca77-5cc8-2bce-fffa-564503c30280@redhat.com> <20161108110550.GC5088@noname.str.redhat.com> From: Vladimir Sementsov-Ogievskiy Message-ID: Date: Tue, 8 Nov 2016 14:08:17 +0300 MIME-Version: 1.0 In-Reply-To: <20161108110550.GC5088@noname.str.redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] BdrvDirtyBitmap and bdrv_snapshot_goto List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Max Reitz Cc: qemu-devel , qemu block , Fam Zheng , "Denis V. Lunev" , John Snow 08.11.2016 14:05, Kevin Wolf wrote: > Am 07.11.2016 um 17:10 hat Max Reitz geschrieben: >> On 07.11.2016 16:24, Vladimir Sementsov-Ogievskiy wrote: >>> Hi all! >>> >>> As I can see, in bdrv_snapshot_goto, existing dirty bitmaps are not >>> handled.. Is it ok? Should not they be filled with ones or something >>> like this? >> Filling them with ones makes sense to me. I guess nobody noticed because >> nobody was crazy enough to use block jobs alongside loadvm... > What's the use case in which ones make sense? > > It rather seems to me that an active dirty bitmap and snapshot switching > should exclude each other because the bitmap becomes meaningless by the > switch. And chances are that after switching a snapshot you don't want > to "incrementally" backup everything, but that you should access a > different backup. > > Kevin In other words, dirty bitmaps should be deleted on snapshot switch? All? Or only named? -- Best regards, Vladimir