From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDPUc-0001EK-LS for qemu-devel@nongnu.org; Thu, 16 Jun 2016 01:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDPUa-0005cY-Ir for qemu-devel@nongnu.org; Thu, 16 Jun 2016 01:05:25 -0400 Date: Thu, 16 Jun 2016 13:05:08 +0800 From: Fam Zheng Message-ID: <20160616050508.GC12178@ad.usersys.redhat.com> References: <1465939839-30097-1-git-send-email-eblake@redhat.com> <1465939839-30097-2-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465939839-30097-2-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 01/17] block: Tighter assertions on bdrv_aligned_pwritev() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, kwolf@redhat.com, Stefan Hajnoczi , Max Reitz On Tue, 06/14 15:30, Eric Blake wrote: > For symmetry with bdrv_aligned_preadv(), assert that the caller > really has aligned things properly. This requires adding an align > parameter, which is used now only in the new asserts, but will > come in handy in a later patch that adds auto-fragmentation to the > max transfer size, since that value need not always be a multiple > of the alignment, and therefore must be rounded down. > > Signed-off-by: Eric Blake Reviewed-by: Fam Zheng