Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp142018ybp; Wed, 16 Oct 2019 15:22:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiUlQuPVQ5b4qiaT9jEjyEjBR3Ol0+niiVZG0NuokbcQ/54rLVRx81pOQIGQnCs6YFU4v3 X-Received: by 2002:a50:d615:: with SMTP id x21mr497909edi.297.1571264570229; Wed, 16 Oct 2019 15:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571264570; cv=none; d=google.com; s=arc-20160816; b=Ec2DwQgf/hGGFFvZEolVY+0+2c+JKE9kCFRSOVPZlcAKYg4qWmpMSnKie8nszm7ExC ywDP1OqLSTfFZM6WmrUCG3yGYtJWBTXQuEtzd7IGlOrqIbrgwsnf+QTIzROh7+zP+Ae4 /9t7zeQLA20KVu5gnR0SIKLzTBJ5UxTpd5b6XRbT5F7P2bu8oJzlXkbmT8/IYwFy+v7b mHYA8ouCORN/Uv59rX5WS+cHUB6pfzdWZy2io4MR7PBN0AfREWPCjLoXUlwuBiEhourr MBcI+eShqv52KrdMXDLIBC/VGPn2SwYLBFk5g60iRgvqwnZrEtDztsvcfoZEbz/xWIcJ BLgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=6Nu/+Ej43HdkA2SLeuEmDz5H/rFY3UxhI56zv/6ZTOc=; b=q1ltTMC2jritGBlYHuCcZ7c4/i6leWicrMpAC6TtpBE8tigts437cBvKzdL1lK16zV kXN+HR4h5TJ8okzWmespvX4i7Sukg21WgxUqHAeQIshRpSa9Zw7oCgUGJO3iEzx+3gNR RrzSpoKo4W/1uk9qV2jvGjlCxX6Fmf3u4C69kuyMBBkhgoSne8+OZ+Tj3yEWus4+Ut56 fHpzCfzqcnaGyDVKn19QCE8ZaE9YPYmB0JFbtcIvWx01H8Wi3viDWnFo9/Nzf28W1FEL caMLKjvQGxw/R4OEh8K/qDxGh25iqMar8U0QQYWfyJIrXkCTDADgqQ1rBl9qCPD1/lmr 8gCg== 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 b42si267374edb.11.2019.10.16.15.22.07; Wed, 16 Oct 2019 15:22:50 -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 S1728018AbfJPP6j (ORCPT + 99 others); Wed, 16 Oct 2019 11:58:39 -0400 Received: from fieldses.org ([173.255.197.46]:36246 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729646AbfJPP6j (ORCPT ); Wed, 16 Oct 2019 11:58:39 -0400 Received: by fieldses.org (Postfix, from userid 2815) id ADB8B1510; Wed, 16 Oct 2019 11:58:38 -0400 (EDT) Date: Wed, 16 Oct 2019 11:58:38 -0400 To: Rick Macklem Cc: "linux-nfs@vger.kernel.org" , Olga Kornievskaia Subject: Re: NFSv4.2 server replies to Copy with length == 0 Message-ID: <20191016155838.GA17543@fieldses.org> References: 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) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Oct 16, 2019 at 06:22:42AM +0000, Rick Macklem wrote: > It seems that the Copy reply with wr_count == 0 occurs when the client > sends a Copy request with ca_src_offset beyond EOF in the input file. > (It happened because I was testing an old/broken version of my client, > but I can reproduce it, if you need a bugfix to be tested. I don't know if > the case of ca_src_offset+ca_count beyond EOF behaves the same?) > --> The RFC seems to require a reply of NFS4ERR_INVAL for this case. I've never understood that INVAL requirement. But I know it's been discussed before, maybe there was some justification for it that I've forgotten. --b. > > rick > > ________________________________________ > From: linux-nfs-owner@vger.kernel.org on behalf of Rick Macklem > Sent: Tuesday, October 15, 2019 10:50 PM > To: linux-nfs@vger.kernel.org > Subject: NFSv4.2 server replies to Copy with length == 0 > > During interop testing (FreeBSD client->Linux server) of NFSv4.2, my > client got into a loop. It was because the reply to Copy was NFS_OK, > but the length in the reply is 0. > (I'll fix the client to fail for this case so it doesn't loop, but...) > > The server is Fedora 30 (5.2.18-200 kernel version). > It you think this might be fixed in a newer kernel or you'd like me to do > something with it to get more info, just let me know. > > I've attached a snippet of the packet trace. (If the list strips it off, just email > me and I'll send it to you.) > > rick