Received: from eggs.gnu.org ([208.118.235.92]:60709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuiDt-0001C3-0n for qemu-devel@nongnu.org; Mon, 14 Jan 2013 06:29:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuiDr-0006Gk-NT for qemu-devel@nongnu.org; Mon, 14 Jan 2013 06:29:00 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:58430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuiDr-0006Ge-HN for qemu-devel@nongnu.org; Mon, 14 Jan 2013 06:28:59 -0500 Received: by mail-wi0-f173.google.com with SMTP id hn17so1165641wib.12 for ; Mon, 14 Jan 2013 03:28:58 -0800 (PST) Date: Mon, 14 Jan 2013 12:28:56 +0100 From: Stefan Hajnoczi Message-ID: <20130114112856.GB11988@stefanha-thinkpad.redhat.com> References: <1355319999-30627-1-git-send-email-pbonzini@redhat.com> <1355319999-30627-9-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1355319999-30627-9-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH 08/20] mirror: allow customizing the granularity List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Wed, Dec 12, 2012 at 02:46:27PM +0100, Paolo Bonzini wrote: > @@ -962,6 +963,7 @@ Arguments: > file/device (NewImageMode, optional, default 'absolute-paths') > - "speed": maximum speed of the streaming job, in bytes per second > (json-int) > +- "granularity": granularity of the dirty bitmap (json-int, optional) "in bytes" would be nice although the text you added below implies this. > - "sync": what parts of the disk image should be copied to the destination; > possibilities include "full" for all the disk, "top" for only the sectors > allocated in the topmost image, or "none" to only replicate new I/O > @@ -971,6 +973,10 @@ Arguments: > - "on-target-error": the action to take on an error on the target > (BlockdevOnError, default 'report') > > +The default value of the granularity is, if the image format defines > +a cluster size, the cluster size or 4096, whichever is larger. If it > +does not define a cluster size, the default value of the granularity > +is 65536.