From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7png-0001gA-51 for qemu-devel@nongnu.org; Mon, 08 May 2017 17:02:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7pnb-0003ru-9i for qemu-devel@nongnu.org; Mon, 08 May 2017 17:02:36 -0400 References: <20170504105444.8940-1-daniel.kucera@gmail.com> <20170508203556.GA22634@stefanha-x1.localdomain> From: "Denis V. Lunev" Message-ID: Date: Mon, 8 May 2017 23:02:19 +0200 MIME-Version: 1.0 In-Reply-To: <20170508203556.GA22634@stefanha-x1.localdomain> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] mirror: add sync mode incremental to drive-mirror and blockdev-mirror List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , Daniel Kucera Cc: Kevin Wolf , "open list:Block Jobs" , Markus Armbruster , Jeff Cody , qemu-devel@nongnu.org, Max Reitz , "Denis V. Lunev" , jsnow@redhat.com, Vladimir Sementsov-Ogievskiy On 05/08/2017 10:35 PM, Stefan Hajnoczi wrote: > On Thu, May 04, 2017 at 12:54:40PM +0200, Daniel Kucera wrote: > > Seems like a logical extension along the same lines as the backup block > job's dirty bitmap sync mode. > >> parameter bitmap chooses existing dirtymap instead of newly created >> in mirror_start_job >> >> Signed-off-by: Daniel Kucera Can you pls describe the use case pls in a bit more details. For now this could be a bit strange: - dirty bitmap, which can be found via bdrv_create_dirty_bitmap could be read-only or read-write, i.e. being modified by writes or be read-only, which should not be modified. Thus adding r/o bitmap to the mirror could result in interesting things. Minimally we should prohibit usage of r/o bitmaps this way. So, why to use mirror, not backup for the case? Den