From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1gSa-0001RQ-08 for qemu-devel@nongnu.org; Fri, 10 Jan 2014 13:05:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1gSR-0006oe-HT for qemu-devel@nongnu.org; Fri, 10 Jan 2014 13:05:31 -0500 Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:47005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1gSR-0006kq-A9 for qemu-devel@nongnu.org; Fri, 10 Jan 2014 13:05:23 -0500 Received: by mail-ee0-f43.google.com with SMTP id c13so2071958eek.30 for ; Fri, 10 Jan 2014 10:05:22 -0800 (PST) Sender: Paolo Bonzini Message-ID: <52D0365B.8070808@redhat.com> Date: Fri, 10 Jan 2014 19:05:15 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1388062130-21126-1-git-send-email-pl@kamp.de> <20140109141322.GB2862@dhcp-200-207.str.redhat.com> <52CEC998.4040409@kamp.de> <20140110114042.GB4276@dhcp-200-207.str.redhat.com> <52CFE396.7070802@kamp.de> <52CFE7C9.9060805@redhat.com> <52D00C4A.6010907@kamp.de> <20140110154614.GE4276@dhcp-200-207.str.redhat.com> <52D01B8D.6080100@kamp.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCHv5] block: add native support for NFS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ronnie sahlberg Cc: Kevin Wolf , "famz@redhat.com" , Peter Lieven , qemu-devel , Orit Wasserman , Stefan Hajnoczi Il 10/01/2014 18:16, ronnie sahlberg ha scritto: > > There is a common exception though, for the case where you read past > the end of file. > So short reads should normally not happen. Unless QEMU or the guest > sends a request to libnfs to read past the end of the file. Yes, this can happen in QEMU and the various drivers are careful to pad with zeroes. It could perhaps be moved to block.c, but for now each driver handles it separately. Paolo