Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1208102ybg; Fri, 18 Oct 2019 13:50:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLDg4MsKPfMUqZBSCtHbYYQ99o1Ig1+P8F8cV5sQiHPK1JLRsFDCetR7QHT+lQdED9MuZq X-Received: by 2002:a17:907:20f2:: with SMTP id rh18mr1656818ejb.96.1571431806650; Fri, 18 Oct 2019 13:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571431806; cv=none; d=google.com; s=arc-20160816; b=bg0LoWW2Redl1/A6H6C0m0a/Q2farEY2zCacjyE1M41u8QCapMe2H9PJ1HsksHibtS 7iuQWTgNWQSOpz9dQ7roXWFMQWPcrP/JTesoYTixjsTg2DKc99clRU8TKFJrmMiiLlf+ K673nnN9CISnVMADpWc6b1XgNpRIXlphFLiPRqjI66ux3xUBSfue96q/qadawrn3kk3U XrZ3/D+1AnRFbLx31ZtXIbHqH51AspnNYzQx8+lAnJeAzWhVjSPJY5zA4MJSVwEDaJVK fhvncY0nD8n488lCfbGqyVdjVIY7NM4PwIUbGAOTYsqM4I1EJOlWmPulwoGaXEzRRc4K GOxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=niBywuESc3/MEOisLOgGo/bE209tc6HfK5AJOxKEYcE=; b=ZLs03caIz5VYMSxsZitQcbOmoCEtuZ6EXTUCIBwTQJtxHa/ImRkRxKlK4CDVYdHzoD 7DU5OfPcwj1L3D33AwXkYjMPMHz4tBsASv6iEYX9ppqdaFtWOy6z2tKQqddEcksQ9ARk ifcsigccAA2Ho5LA1RevvxvLuunsesQa1nPG7/25q+0o20LmCMG/ytSzaFmA5TmuTuK7 00oPpXJts9wzGQHU+wFg0uTH1nG5NgGWcoNmWr/znddTAJLMLt57pZWHewmWgssrHUip 9VYPEyIxi6g5wx+nycLUheXjA7K3YR8BvKH3FKU5mHHk/JzHxvekbAHuqVT4W5jpS4Fh 0hwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si4745899edz.299.2019.10.18.13.49.35; Fri, 18 Oct 2019 13:50:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406500AbfJQQOr (ORCPT + 99 others); Thu, 17 Oct 2019 12:14:47 -0400 Received: from fieldses.org ([173.255.197.46]:37462 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404628AbfJQQOr (ORCPT ); Thu, 17 Oct 2019 12:14:47 -0400 Received: by fieldses.org (Postfix, from userid 2815) id C9D8F1B96; Thu, 17 Oct 2019 12:14:46 -0400 (EDT) Date: Thu, 17 Oct 2019 12:14:46 -0400 From: "J. Bruce Fields" To: Rick Macklem Cc: "Kornievskaia, Olga" , "linux-nfs@vger.kernel.org" , "nfsv4@ietf.org" Subject: Re: NFSv4.2 server replies to Copy with length == 0 Message-ID: <20191017161446.GI32141@fieldses.org> References: <20191016155838.GA17543@fieldses.org> <31E6043B-090D-4E37-B66F-A45AC0CFC970@netapp.com> <20191016203150.GC17543@fieldses.org> <20191017152253.GG32141@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Oct 17, 2019 at 03:55:28PM +0000, Rick Macklem wrote: > ps: When I re-read it, the comment I made related to Bruce's "wrong" > was blunt (or maybe rude). It's OK! I'm possibly being annoying about this kinda trivial thing anyway. > I apologize for the tone. All I had intended to say was "although it > might not be our preferred semantic, it appears to clear and > implementable, so I do not think it can be "clarified" to be the way > the Linux server does it". I actually prefer the way the Linux server > does it, but it is too late now, imho. For the COPY case at least, implementations seem to be rare and new. Is it really that trivial to fix up the mismatch? Actually, I guess so: if I'm implementing the copy using read and write, then a 0-length read result from a nonzero read call can only mean end of file, so there's no need to do a second check of the file length or anything. Hm. --b.