From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1ytm-00043A-Re for qemu-devel@nongnu.org; Mon, 27 Feb 2012 06:37:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1yti-0001oa-FS for qemu-devel@nongnu.org; Mon, 27 Feb 2012 06:37:46 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:62283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1yti-0001oW-8V for qemu-devel@nongnu.org; Mon, 27 Feb 2012 06:37:42 -0500 Received: by pbbro12 with SMTP id ro12so6330425pbb.4 for ; Mon, 27 Feb 2012 03:37:40 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4F4B6AFE.6090601@redhat.com> Date: Mon, 27 Feb 2012 12:37:34 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1329930815-7995-1-git-send-email-fsimonce@redhat.com> <1329930815-7995-2-git-send-email-fsimonce@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3] Add blkmirror block driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, Federico Simoncelli , mtosatti@redhat.com, qemu-devel@nongnu.org On 02/27/2012 10:23 AM, Stefan Hajnoczi wrote: > > I think the right approach is to create a single blkmirror driver that > > also includes blkverify functionality. The code is basically the same > > except blkverify also compares reads - just use a flag to > > enable/disable that behavior. > > > > Feel free to rename the blkverify driver to blkmirror if you wish. > > Federico: Any response to this? I still think blkmirror and blkverify > do essentially the same thing and should be unified. Once non-incremental mode is added, I suspect blkmirror will diverge from blkverify significantly. In particular, we would need to track where have writes been done in the destination. We also would need to hooks for block/stream.c, or perhaps a completely separate implementation of streaming. Also, blkverify doesn't support cancellation. I know we do quite poorly in this area, but I'd rather not make it worse... Paolo