From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajNcW-0005E4-0H for qemu-devel@nongnu.org; Fri, 25 Mar 2016 05:01:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajNcS-0007dR-RH for qemu-devel@nongnu.org; Fri, 25 Mar 2016 05:01:27 -0400 Received: from mail.avalus.com ([89.16.176.221]:57631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajNcS-0007d6-KA for qemu-devel@nongnu.org; Fri, 25 Mar 2016 05:01:24 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) From: Alex Bligh In-Reply-To: <20160325084929.GA2671@grep.be> Date: Fri, 25 Mar 2016 09:01:25 +0000 Content-Transfer-Encoding: 7bit Message-Id: <8C7CC1D0-2835-4791-8215-C3A5F1B0995C@alex.org.uk> References: <1458742562-30624-1-git-send-email-den@openvz.org> <1458742562-30624-3-git-send-email-den@openvz.org> <56F4654D.2020700@redhat.com> <20160325084929.GA2671@grep.be> Subject: Re: [Qemu-devel] [Nbd] [PATCH 2/2] NBD proto: add GET_LBA_STATUS extension List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wouter Verhelst Cc: "nbd-general@lists.sourceforge.net" , Kevin Wolf , Alex Bligh , "qemu-devel@nongnu.org" , "Stefan stefanha@redhat. com" , "Denis V. Lunev" , Paolo Bonzini On 25 Mar 2016, at 08:49, Wouter Verhelst wrote: > Yes. This has been discussed on the nbd-general list in the past. There > is also the (significant) problem of the server having maybe already > sent out the header before discovering there is an error, at which point > it can *only* drop the connection. Indeed. I think where we got to last time this was discussed was that the server could have the option of returning 'chunks' of reply, each chunk either being a {length, data} tuple, or an error. The total data transmitted would add up to the full length if there is no error. >> I could write up a negotiation of global flags for structured reply >> lengths as an extension proposal, if you think it is worth it. > > I think it is worth it... +1 - for NBD_CMD_READ too -- Alex Bligh