Received: from eggs.gnu.org ([2001:4830:134:3::10]:33327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btyjm-0002Ol-Qo for qemu-devel@nongnu.org; Tue, 11 Oct 2016 11:13:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btyjk-0001e3-Nd for qemu-devel@nongnu.org; Tue, 11 Oct 2016 11:13:01 -0400 References: <1468901281-22858-1-git-send-email-eblake@redhat.com> <1468901281-22858-7-git-send-email-eblake@redhat.com> <20160719051533.GE18103@ad.usersys.redhat.com> From: Eric Blake Message-ID: Date: Tue, 11 Oct 2016 10:12:54 -0500 MIME-Version: 1.0 In-Reply-To: <20160719051533.GE18103@ad.usersys.redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="miUjmjmQl0UJ71trlKQ362dPqsDDC04Rp" Subject: Re: [Qemu-devel] [PATCH v5 06/14] nbd: Send message along with server NBD_REP_ERR errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --miUjmjmQl0UJ71trlKQ362dPqsDDC04Rp From: Eric Blake To: Fam Zheng Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, qemu-block@nongnu.org Message-ID: Subject: Re: [Qemu-devel] [PATCH v5 06/14] nbd: Send message along with server NBD_REP_ERR errors References: <1468901281-22858-1-git-send-email-eblake@redhat.com> <1468901281-22858-7-git-send-email-eblake@redhat.com> <20160719051533.GE18103@ad.usersys.redhat.com> In-Reply-To: <20160719051533.GE18103@ad.usersys.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/19/2016 12:15 AM, Fam Zheng wrote: > On Mon, 07/18 22:07, Eric Blake wrote: >> nbd/server.c | 78 +++++++++++++++++++++++++++++++++++++++++++++------= --------- >> 1 file changed, 59 insertions(+), 19 deletions(-) >> >> diff --git a/nbd/server.c b/nbd/server.c >> index c8716f1..ad31c4a 100644 >> --- a/nbd/server.c >> +++ b/nbd/server.c >> @@ -235,6 +235,38 @@ static int nbd_negotiate_send_rep(QIOChannel *ioc= , uint32_t type, uint32_t opt) >> return nbd_negotiate_send_rep_len(ioc, type, opt, 0); >> } >> >> +/* Send an error reply. >> + * Return -errno to kill connection, 0 to continue negotiation. */ >> +static int GCC_FMT_ATTR(4, 5) >> + nbd_negotiate_send_rep_err(QIOChannel *ioc, uint32_t type, >=20 > Isn't the function name supposed to be place at col 0? I blame emacs for that one. I'm (finally) back to working on this series, and will have a v6 posted soon addressing comments here and elsewhere. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --miUjmjmQl0UJ71trlKQ362dPqsDDC04Rp 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX/QF2AAoJEKeha0olJ0Nq01YH/2WzlnxE3YRButqCt4LkCb1s FJuPEIasrnZXiLtCziHtX82kijYhgyCiOrjfMEt5LdnIiig+mmuLeLUK7e0pQNJK lialEcVdy3BFb2qU0SQQYVkmiemTZ6nCQI+YdxtnwWZpQ73tnwqnNRa7grUUtCCD ff6A8hdoKEQm8YlyQtxwrawEgfzIWDnlVOeM1dC0HY40YHO4zV4XHsj/3Ju2n7CP XuaSu0O8pNXpQMIcBJ7i3hAhxPAzOO2k/17kQyjDDFbEb+5R8Rs4zugOWjnmaygR 8XlMdEuBKi6TWZLkASk/MrynPyZVbAvMW/8PkjWPR17kInt+k7J5QO8vaPVFwGc= =5T0G -----END PGP SIGNATURE----- --miUjmjmQl0UJ71trlKQ362dPqsDDC04Rp--