Received: from eggs.gnu.org ([2001:4830:134:3::10]:44645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7VIi-0001d5-D9 for qemu-devel@nongnu.org; Thu, 17 Nov 2016 17:37:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7VIh-0006Dj-MO for qemu-devel@nongnu.org; Thu, 17 Nov 2016 17:37:00 -0500 References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-7-git-send-email-eblake@redhat.com> From: Max Reitz Message-ID: <27c026ea-b8af-e834-0fe1-6d4a4f46e129@redhat.com> Date: Thu, 17 Nov 2016 23:36:51 +0100 MIME-Version: 1.0 In-Reply-To: <1479413642-22463-7-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8XJritcOohN9po7jVJaeKRNoq7CEvdH1J" Subject: Re: [Qemu-devel] [PATCH v2 6/9] blkdebug: Sanity check block layer guarantees List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8XJritcOohN9po7jVJaeKRNoq7CEvdH1J From: Max Reitz To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com Message-ID: <27c026ea-b8af-e834-0fe1-6d4a4f46e129@redhat.com> Subject: Re: [PATCH v2 6/9] blkdebug: Sanity check block layer guarantees References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-7-git-send-email-eblake@redhat.com> In-Reply-To: <1479413642-22463-7-git-send-email-eblake@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 17.11.2016 21:13, Eric Blake wrote: > Commits 04ed95f4 and 1a62d0ac updated the block layer to auto-fragment > any I/O to fit within device boundaries. Additionally, when using a > minimum alignment of 4k, we want to ensure the block layer does proper > read-modify-write rather than requesting I/O on a slice of a sector. > Let's enforce that the contract is obeyed when using blkdebug. For > now, blkdebug only allows alignment overrides, and just inherits other > limits from whatever device it is wrapping, but a future patch will > further enhance things. >=20 > Signed-off-by: Eric Blake > --- > block/blkdebug.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) Reviewed-by: Max Reitz --8XJritcOohN9po7jVJaeKRNoq7CEvdH1J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEvBAEBCAAZBQJYLjEDEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRD0B9sAYdXPQF4I B/9184RbdfKpGdto+tLIEtGZelbsZYs82IiEo262QFCS3LnW4gS3gycBLZrAxm0J OjSG/OYWkfVSei4NRc15KPq0mzOvElXOhLhWwrsZap2Yg8JVLtR+TTr0NWskhGi3 +BffGdkPrXHhk14abhk77dO3J4aBt3jYeqtw6TsIwOhZTFUyT/io41JZOeLZLi4E S/UIB6SGdKA7vx92XoyakBH6Z56O8H9504ENrMyokrqTKzstCSwvK+RXmAlnC+I5 fQVl1fJvtWP/GEtbdAZLr+Mvp7zozHSRvK3dRHF6kX31MWr6a+s4IkIFffHGGWju 0LUU/z8esG+DmzNrFDAEUbBJ =OMAj -----END PGP SIGNATURE----- --8XJritcOohN9po7jVJaeKRNoq7CEvdH1J--