Received: from eggs.gnu.org ([2001:4830:134:3::10]:56838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0Vkp-0002ty-R5 for qemu-devel@nongnu.org; Wed, 11 May 2016 11:08:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0Vkn-0004rk-KN for qemu-devel@nongnu.org; Wed, 11 May 2016 11:08:50 -0400 References: <1462524302-15558-1-git-send-email-quentin.casasnovas@oracle.com> <5731E99C.3000108@redhat.com> <3271D86E-D54C-44FC-9FD6-2E2C51F5FB6D@alex.org.uk> <5731FE53.6010602@redhat.com> <672ED845-88C6-4C96-B2DC-F4BCBD85F788@alex.org.uk> <20160510154545.GB28315@chrystal.uk.oracle.com> <592DA6FD-75F8-4B7F-AA21-DEA8D591B723@alex.org.uk> <20160510160438.GD28315@chrystal.uk.oracle.com> <8F0007CD-40E2-43C1-8196-B4BE401B8EF4@alex.org.uk> <5732FD8C.1080106@redhat.com> <57333CEB.7050705@redhat.com> From: Paolo Bonzini Message-ID: <57334AF0.1020501@redhat.com> Date: Wed, 11 May 2016 17:08:32 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dwRDvh8eG1W9riKfLSbOenwdx8x8o7K2t" Subject: Re: [Qemu-devel] [Nbd] [PATCH] nbd: fix trim/discard commands with a length bigger than NBD_MAX_BUFFER_SIZE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh , Eric Blake Cc: Quentin Casasnovas , "qemu-devel@nongnu.org" , "qemu-trivial@nongnu.org" , "nbd-general@lists.sourceforge.net" , "qemu-stable@nongnu.org" , qemu block This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dwRDvh8eG1W9riKfLSbOenwdx8x8o7K2t From: Paolo Bonzini To: Alex Bligh , Eric Blake Cc: Quentin Casasnovas , "qemu-devel@nongnu.org" , "qemu-trivial@nongnu.org" , "nbd-general@lists.sourceforge.net" , "qemu-stable@nongnu.org" , qemu block Message-ID: <57334AF0.1020501@redhat.com> Subject: Re: [Nbd] [Qemu-devel] [PATCH] nbd: fix trim/discard commands with a length bigger than NBD_MAX_BUFFER_SIZE References: <1462524302-15558-1-git-send-email-quentin.casasnovas@oracle.com> <5731E99C.3000108@redhat.com> <3271D86E-D54C-44FC-9FD6-2E2C51F5FB6D@alex.org.uk> <5731FE53.6010602@redhat.com> <672ED845-88C6-4C96-B2DC-F4BCBD85F788@alex.org.uk> <20160510154545.GB28315@chrystal.uk.oracle.com> <592DA6FD-75F8-4B7F-AA21-DEA8D591B723@alex.org.uk> <20160510160438.GD28315@chrystal.uk.oracle.com> <8F0007CD-40E2-43C1-8196-B4BE401B8EF4@alex.org.uk> <5732FD8C.1080106@redhat.com> <57333CEB.7050705@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/05/2016 16:55, Alex Bligh wrote: >> > Then I think I will propose a doc patch to the extension-info branch= >> > that adds new INFO items for NBD_INFO_TRIM_SIZE and >> > NBD_INFO_WRITE_ZERO_SIZE (if requested by client and replied by serv= er, >> > then this can be larger than the normal maximum size in >> > NBD_INFO_BLOCK_SIZE; if either side doesn't request the info, then >> > assume any maximum in NBD_INFO_BLOCK_SIZE applies, otherwise UINT32_= MAX; >> > and the two infos are separate items because NBD_FLAG_SEND_TRIM and >> > NBD_FLAG_SEND_WRITE_ZEROES are orthogonally optional). > mmmm ... >=20 > at this rate you'd be better with a list of command / maximum size > tuples! Not sure if serious or not, but anyway I think enumerating the items individually should be enough. It's not like commands grow on trees. :) Paolo --dwRDvh8eG1W9riKfLSbOenwdx8x8o7K2t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXM0rwAAoJEL/70l94x66DdvIH/0CnQHo9azF9q2ejGNMjU4YT WSdBIWzC/8fspQVNNCe0k5NrbdCDQrsiC+AGXJDCnF9UEL6+BfCEu+qO27MBZEHn WJJj35zULHw187/DE2xPqOHDhDcwIML0wRtj2BQ4K6LWIOr0Y6gtEDl9rcbdRVH8 AoELGZpxP7te+AFYvxqP2JQ9OKRI+HWrxK79o9VrtXdK0ulqyxAxcCInilI4yc8g UwDa8r7vT9Q7Q7TutdbeSdtzlPyJ9gQasMq21ui5wFcYZIKehLweU7QZAF8ZrELG zdPnNZ8ujA1S5Ve0ZY6EWmLMVHVio5eILhFXplpgGdeCscPuvG4PvBxEzqMqiP0= =7kIK -----END PGP SIGNATURE----- --dwRDvh8eG1W9riKfLSbOenwdx8x8o7K2t--