Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1187736ybg; Fri, 18 Oct 2019 13:28:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2AO3WMXBVfoKPUfyl9B0QezUqfNW9HiWPWYGEZrnDD6LCQSt4V05fLVqwmDnD2gN4F5U3 X-Received: by 2002:a05:6402:8cf:: with SMTP id d15mr11488493edz.225.1571430489817; Fri, 18 Oct 2019 13:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571430489; cv=none; d=google.com; s=arc-20160816; b=hQOewNgA5KOPdAPzP4bPXKIfSRK3TRYq/v3dNHZWECFbAYYTXr0avyIoGOghyoUAwu pFnT3N6hU9UQHHJ34IFo9XWtJEK8nj+Lq2afT1az7L51pBfffRAWxIPk9cB7kftHX5xq 1wjjTUuJ7MwPLlIAK0NpDXaDoaoY/f5h4zGqh5blJYNY9dhYHK+s1Pk1UcQVt3SnvgKD 08LEBL5bM1f4SKnHQ83E3tHi5ru23tP2snRKJQh6s0KziPbapZn3VcDP46EIBA3QPXrb iuOfA/IeR390sfVoNEs90e41SAEK8VQfqCl5WZlRlT8KNGcvWwBSQRSV2nyee86wnmKb V5OA== 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=oCA02TaE5sedbpOZly0qftjokNxOyg9zOHuSEB24xSc=; b=nipswvQgpnColO4VNc4o35/EOZgWs3C6rFdViMt9hljvbgfuvDPUnCn4DGbaSnKxyB /dngqczln6QfoHnS0bVqM74/rzuLfH1aBwWOmcurTru0IYJL28CHpGiMTOC+rfrV3KWh p4o61z/tz5gq86zhWoBH29pR+bZfwzRmlHASGIMtCezRN0GCF6MZDpn+KEoHvcR6cWG/ brE5lyv6+LlLfRExLAYY+hDrUQsN0QhzB7q1/h5FHpDj6uvgMACmqf2PjHNUbDsq7uj6 kTfXcNICmuyVzotsgFS5AR7Qw7TNR/l4JP12zTc8uWT7ixUPXjFLBXMsi8z2Sv4XKpem EiCQ== 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 k17si4137850ejz.227.2019.10.18.13.27.32; Fri, 18 Oct 2019 13:28:09 -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 S1732453AbfJQOtW (ORCPT + 99 others); Thu, 17 Oct 2019 10:49:22 -0400 Received: from fieldses.org ([173.255.197.46]:37350 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfJQOtV (ORCPT ); Thu, 17 Oct 2019 10:49:21 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 8BFE31C95; Thu, 17 Oct 2019 10:49:21 -0400 (EDT) Date: Thu, 17 Oct 2019 10:49:21 -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: <20191017144921.GF32141@fieldses.org> References: <20191016155838.GA17543@fieldses.org> <31E6043B-090D-4E37-B66F-A45AC0CFC970@netapp.com> <20191016203150.GC17543@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 04:43:58AM +0000, Rick Macklem wrote: > >>On Wed, Oct 16, 2019 at 07:53:45PM +0000, Kornievskaia, Olga wrote: > >>> On the client if VFS did read of len=0 then VFS itself we return 0, > >>> thus this doesn't protect against other clients sending an NFS copy > >>> with len=0. And in NFS, receiving copy with len=0 means copy to the > >>> end of the file. It's not implemented for any "intra" or "inter" code. > >Are you saying that an NFSv4.2 Copy request with a ca_count == 0 > >will not work for the Linux NFSv4.2 server? > >(I guess I'd better test this one, too.) > Tested it and it does not work, at least for Fedora30. > The server just returns 0 instead of doing a copy to EOF on the input file. > I think you should implement this, although my client does not do this now. Agreed. --b.