Received: from eggs.gnu.org ([2001:4830:134:3::10]:37109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dI0iE-0005qn-Rq for qemu-devel@nongnu.org; Mon, 05 Jun 2017 18:43:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dI0iE-0006x9-5m for qemu-devel@nongnu.org; Mon, 05 Jun 2017 18:43:02 -0400 References: <20170511022036.32225-1-eblake@redhat.com> <20170511022036.32225-16-eblake@redhat.com> From: John Snow Message-ID: Date: Mon, 5 Jun 2017 18:42:53 -0400 MIME-Version: 1.0 In-Reply-To: <20170511022036.32225-16-eblake@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 15/20] backup: Switch block_backup.h to byte-based List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Wen Congyang , Jeff Cody , Max Reitz , Xie Changlong On 05/10/2017 10:20 PM, Eric Blake wrote: > We are gradually converting to byte-based interfaces, as they are > easier to reason about than sector-based. Continue by converting > the public interface to backup jobs (no semantic change), including > a change to CowRequest to track by bytes instead of cluster indices. > > Note that this does not change the difference between the public > interface (starting point, and size of the subsequent range) and > the internal interface (starting and end points). > > Signed-off-by: Eric Blake > Reviewed-by: John Snow > --- > v2: change a couple more parameter names > --- > include/block/block_backup.h | 11 +++++------ > block/backup.c | 33 ++++++++++++++++----------------- > block/replication.c | 12 ++++++++---- > 3 files changed, 29 insertions(+), 27 deletions(-) >