From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHrZD-0001t5-NN for qemu-devel@nongnu.org; Tue, 28 Jun 2016 07:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHrZB-0001RI-T8 for qemu-devel@nongnu.org; Tue, 28 Jun 2016 07:52:34 -0400 Date: Tue, 28 Jun 2016 13:52:24 +0200 From: Kevin Wolf Message-ID: <20160628115224.GF6800@noname.redhat.com> References: <1466681836-1123-1-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466681836-1123-1-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 1/1] block: fix return code for partial write for Linux AIO List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Pavel Borzenkov , Max Reitz Am 23.06.2016 um 13:37 hat Denis V. Lunev geschrieben: > Partial write most likely means that there is not space rather than > "something wrong happens". Thus it would be more natural to return > ENOSPC rather than EINVAL. > > The problem actually happens with NBD server, which has reported EINVAL > rather then ENOSPC on the first error using its protocol, which makes > report to the user wrong. > > Signed-off-by: Denis V. Lunev > CC: Pavel Borzenkov > CC: Kevin Wolf > CC: Max Reitz Thanks, applied to the block branch. Kevin