From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEy17-0004Hn-OA for qemu-devel@nongnu.org; Mon, 20 Jun 2016 08:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEy0x-0006or-3B for qemu-devel@nongnu.org; Mon, 20 Jun 2016 08:09:20 -0400 Date: Mon, 20 Jun 2016 13:09:12 +0100 From: Stefan Hajnoczi Message-ID: <20160620120912.GB14100@stefanha-x1.localdomain> 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline In-Reply-To: <1465939839-30097-2-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [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, kwolf@redhat.com, Fam Zheng , Stefan Hajnoczi , qemu-block@nongnu.org, Max Reitz --ftEhullJWpWg/VHq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 14, 2016 at 03:30:23PM -0600, 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. >=20 > Signed-off-by: Eric Blake >=20 > --- > v2: new patch > --- > block/io.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) Reviewed-by: Stefan Hajnoczi --ftEhullJWpWg/VHq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXZ9zoAAoJEJykq7OBq3PIXVwH/1Gc5N7YXJEsH+1s3Ghy1/rL cKaXGWX4PUPdDBBKWX2TNZpCkzQSlUIxtQqk67lrd0se4gPw+PAovizFXJWzZwAd VeiOidWgf3evk4jiehEyhqCMp8APYQZraAq1ZJjTveWZE48lgCTjYTTNTG82ZUzQ ncJaNn8O9O1ZyMOgd0iCNtMeQWd7yFS1d898QFNyZyFmTuFtkkfCDNU8piMayRn4 K8SOPlwX9HbR52ynLuCHpR9N739LPcUWbXzRks9IMfeeHKyRCOLQaMXGrt4yqNT/ 8yDHRwy7jxMdEJEj6XY5sohgB70HgsTeN9wMg4DLptG4W0xDfZ5rhavIHDmsvIk= =znhq -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--