Received: from eggs.gnu.org ([2001:4830:134:3::10]:40991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e04MR-0002DI-KZ for qemu-devel@nongnu.org; Thu, 05 Oct 2017 07:30:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e04MO-0005bU-Hd for qemu-devel@nongnu.org; Thu, 05 Oct 2017 07:30:39 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:6005 helo=relay.sw.ru) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e04MO-0005Xa-5M for qemu-devel@nongnu.org; Thu, 05 Oct 2017 07:30:36 -0400 From: Vladimir Sementsov-Ogievskiy References: Message-ID: Date: Thu, 5 Oct 2017 14:30:07 +0300 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] nbd structured reply List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Wouter Verhelst , Alex Bligh Cc: qemu-devel , "nbd-general@lists.sourceforge.net" 21.09.2017 15:18, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > I'm about this: > > "A server SHOULD try to minimize the number of chunks sent in a reply, > but MUST NOT mark a chunk as final if there is still a possibility of > detecting an error before transmission of that chunk completes" > > What do we mean by "possibility"? Formally, such possibility exists > always, so, we'll never mark a chunk as final. > One more question: for |NBD_REPLY_TYPE_ERROR and ||NBD_REPLY_TYPE_ERROR_OFFSET, why do we need message_length field? why not to calc it as chunk.lenght - 4 for ||NBD_REPLY_TYPE_ERROR and chunk.lenght - 12 for ||NBD_REPLY_TYPE_ERROR_OFFSET? For example, with NBD_REPLY_TYPE_OFFSET_DATA variable data length is calculated, not specified separately. What is the reason for server to send NBD_REPLY_TYPE_ERROR with message_lenght < chunk.lenght - 4? | -- Best regards, Vladimir