Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp133849pxb; Mon, 7 Feb 2022 07:55:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4j9F1/TC+/QqjOwXM1DZsV898QHM7+TM2zrHo5hXTkNLVvGe++nlEadhQZQ9QiTb+UTR5 X-Received: by 2002:a05:6402:348c:: with SMTP id v12mr121119edc.384.1644249359551; Mon, 07 Feb 2022 07:55:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644249359; cv=none; d=google.com; s=arc-20160816; b=eTnqYOVk1BAjN4g44r334G4F95xXM+tF706L3s0g5G80z3u/xcHA2fxlclZ58QID40 6kMynVyBlgDCielYLsp/wQ0spQESAKdQIlmjFF5a188gUMB3NbZQdnFSHk/ZGKMwVV2P ISasHKVIMCVSHCelb/Hs7ggrGY6B/1zkAxaaPdHHNGdzVgwzV+W4ZR3at9ESZst7Zmry glh7IgcAPpmm35Lr4ZA8TOmXeqYoFdSSJMdoTMC4j93RaTCZ4tTzeR/7YBw5eU7dw8CB lDcphuZGb/9RaYbOBAnVg++cV2i2IwCLfWpOK0K8BHDLvbIP+PGEQ8g7ZmBoZokVjjzz 5xAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=gEfQ4DHryz7UCWYdLV7JBM+TTUpuJX289YX71Hxq3KA=; b=vLjH1+zg39+iH80nGyEQDkUbuD6RV+zbbTXWlkERtN+krkMzs91O4InFHAp3h9aSVo 3a2Zu6HpCfd16Dmltnpu23X8pQuf6VnDbfxy6HC6+N8z+xvLxkkC7q6ffuJ3Nb5UpmUV 9+uGuYss2hWnNO+VRr/KRXw0h0Z0r8t8sMNAsS1LH7N2/r2a+xG8JITbIHKgRrnFCfTh oneYf2e/gyN9o3DSEpcpKRKPsvcp1sacJ+Kf5nGRIDYBYrncBvLbWGY6jaGySyCcGJj0 50OIcKDk1IXYXu3X581kUzCDsYqAl6eS257w6sg/G3jP6l5jm3b9RKyR+MhoJN6Xqgay njtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=kPc7pD8r; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb24si1671261ejc.347.2022.02.07.07.55.35; Mon, 07 Feb 2022 07:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=kPc7pD8r; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239084AbiBDVCR (ORCPT + 99 others); Fri, 4 Feb 2022 16:02:17 -0500 Received: from mta-201b.oxsus-vadesecure.net ([51.81.229.181]:52669 "EHLO nmtao201.oxsus-vadesecure.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232318AbiBDVCQ (ORCPT ); Fri, 4 Feb 2022 16:02:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; bh=gEfQ4DHryz7UCWYdLV7JBM+TTUpuJX289YX71H xq3KA=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-subscribe:list-post: list-owner:list-archive; q=dns/txt; s=dk12062016; t=1644008532; x=1644613332; b=kPc7pD8rjBbr4WvImZPBOXQx3+M6wAyjugayfC9l2XorZe3Nr2zBi9v S2kxyVf0IAF3vwSV8wyBwzQHGcMCbxGwgzUvMsXOHHrq33KaM8S72hJvpJnhqbUynYu+pRV nia6Adi+2Jg9N/RZI00fH3xYqLuwBKBtxFPcxNap+evh7Z2Jj1bXTP156vv2MB8IcD91Uaq Q6sg4vnKqTs/Q2RpAab684LykUO9+0hK/PVECNoAMFVt3GNtYY62lOKRCJXcMmpO3JFEF3B aFxp39pQz8gehVb/Bz7uoUCUqMgVzV0XMxecNvqdpBOf5DUAHrqUbXSty0+9h+zLxdxDbpu 1aA== Received: from FRANKSTHINKPAD ([76.105.143.216]) by smtp.oxsus-vadesecure.net ESMTP oxsus2nmtao01p with ngmta id 197d1dcd-16d0b10cd53886d2; Fri, 04 Feb 2022 21:02:12 +0000 From: "Frank Filz" To: "'Chuck Lever'" , Cc: References: <164400374422.1026143.17746475126462213720.stgit@morisot.1015granger.net> In-Reply-To: <164400374422.1026143.17746475126462213720.stgit@morisot.1015granger.net> Subject: RE: [PATCH] Permit COMMIT operations to return NFS4_OK Date: Fri, 4 Feb 2022 13:02:12 -0800 Message-ID: <0ec101d81a0a$7bdfa880$739ef980$@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us Thread-Index: AQIf1eootFfPAesAqllEKesc4wY5pKv0aJIw Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > RFC 7530 permits COMMIT to return NFS4ERR_INVAL, but RFC 5661 and = later do > not. Allow INVAL as a legacy behavior, but test for OK also. Do we have a 4.1 test to verify 4.1 and later doesn't return INVAL? Frank > Signed-off-by: Chuck Lever > --- > nfs4.0/servertests/st_commit.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/nfs4.0/servertests/st_commit.py = b/nfs4.0/servertests/st_commit.py > index 12a0dffa061f..4ef87e69c5d7 100644 > --- a/nfs4.0/servertests/st_commit.py > +++ b/nfs4.0/servertests/st_commit.py > @@ -160,4 +160,4 @@ def testCommitOverflow(t, env): > res =3D c.write_file(fh, _text, 0, stateid, how=3DUNSTABLE4) > check(res, msg=3D"WRITE with how=3DUNSTABLE4") > res =3D c.commit_file(fh, 0xfffffffffffffff0, 64) > - check(res, NFS4ERR_INVAL, "COMMIT with offset + count overflow") > + check(res, [NFS4_OK, NFS4ERR_INVAL], "COMMIT with offset + count > + overflow")