Received: from eggs.gnu.org ([2001:4830:134:3::10]:56317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPXDW-0004s0-Gd for qemu-devel@nongnu.org; Tue, 19 Jul 2016 11:45:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPXDV-0001CL-Ic for qemu-devel@nongnu.org; Tue, 19 Jul 2016 11:45:54 -0400 References: <1468901281-22858-1-git-send-email-eblake@redhat.com> <1468901281-22858-14-git-send-email-eblake@redhat.com> <20160719062131.GG18103@ad.usersys.redhat.com> <578E4708.5080308@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 19 Jul 2016 17:45:39 +0200 MIME-Version: 1.0 In-Reply-To: <578E4708.5080308@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bRLVbEk8gJVEvQrNPmTtKuHf6G0bqs4Me" Subject: Re: [Qemu-devel] [PATCH v5 13/14] nbd: Implement NBD_CMD_WRITE_ZEROES on server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Fam Zheng Cc: qemu-devel@nongnu.org, Kevin Wolf , qemu-block@nongnu.org, Max Reitz , "nbd-general@lists.sourceforge.net" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bRLVbEk8gJVEvQrNPmTtKuHf6G0bqs4Me From: Paolo Bonzini To: Eric Blake , Fam Zheng Cc: qemu-devel@nongnu.org, Kevin Wolf , qemu-block@nongnu.org, Max Reitz , "nbd-general@lists.sourceforge.net" Message-ID: Subject: Re: [Qemu-devel] [PATCH v5 13/14] nbd: Implement NBD_CMD_WRITE_ZEROES on server References: <1468901281-22858-1-git-send-email-eblake@redhat.com> <1468901281-22858-14-git-send-email-eblake@redhat.com> <20160719062131.GG18103@ad.usersys.redhat.com> <578E4708.5080308@redhat.com> In-Reply-To: <578E4708.5080308@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 19/07/2016 17:28, Eric Blake wrote: >> If I'm reading the NBD proto.md correctly, this is not enough if >> NBD_CMD_FLAG_NO_HOLE is specified. We probably need to use a zeroed bu= ffer with >> blk_pwrite, or pass a new flag (BDRV_RED_NO_HOLE) to blk_pwrite_zeroes= to >> enforce the bdrv_driver_pwritev() branch in bdrv_co_do_pwrite_zeroes()= =2E I agree with Eric's interpretation. It's a bit weird to have the direction inverted, but I'm not sure I see the ambiguity. Can you explai= n? Paolo --bRLVbEk8gJVEvQrNPmTtKuHf6G0bqs4Me 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 iQEcBAEBCAAGBQJXjksjAAoJEL/70l94x66D418IAIsNUTd+F6EqI2IA8hvtV8Wy oDVL4kV7lKYF4tzKN568MKuqCApweHnr4tPnvNfmVbqs+QDFmRKB8CGm5FCeLucC 0yHslw09pMnvX34nvQX9kEDqROiJ0D3nLU3GOzcuqVB2jmAv8Z75pMinTfM2I0f5 OnCkgX/U+7M0pW3bdgOpeHX4+/wBmFHOWaJ9GopFQ46Em+uV2cDrn6YMTbk+essF UwYWWj3Gpluk62TYFzN8+KE7bQqeUQa7q+s77GSQgRKYbnkUtXVLKbVVoCQ9RKk5 h3PePduxAgV4Ux1y6l76rb1L9BPpJEniDi+pET2m+mFX4kLbVQto7/Ru4pAh5O4= =2hEp -----END PGP SIGNATURE----- --bRLVbEk8gJVEvQrNPmTtKuHf6G0bqs4Me--