Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1896127rwb; Fri, 5 Aug 2022 09:29:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6VM4fFhTQSk16+VdyTntTojMlA1Ume5xQ0cQ/rN5nxF2nawxLYfEt76tDVndEJCjKmdDTt X-Received: by 2002:a05:6402:95c:b0:43d:6297:f241 with SMTP id h28-20020a056402095c00b0043d6297f241mr7363159edz.373.1659716979275; Fri, 05 Aug 2022 09:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659716979; cv=none; d=google.com; s=arc-20160816; b=Zo93GJnTZkOEr5W58DDoCx1kb6fGXmKOtCh+wPd0h0/BlSU1CDIIIE8IagkEbvExaL Jec4Y/LXNAhdeRTEVe3EkpUbkUEWAPlxIzI0QN0mvNW8oxuBDPAexwVMhVZdV6eK80u0 Mjd6LgXqL4USuD4T8XTl1/avazZzvKyFq9/mbjmImuZFJIVNK/mqJlMye+gW4Yc6+oz4 +dln7QWfVS279fSzIQ6CcVp7yVS0CiTZ4WgnRMw9AZAvX7MC1GPEVe4agWv1kn5W9P5k CqHq95Nx5F1vkNJ/G7xGtXuLT7+C/L2D0+zhpKBUHer5JSOU4hVh38GIYQiKRdvMOJPA kskA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject; bh=tMtwNtV1qNKhvisQXtgCAoDdkqJTNikJObc9w29YzMs=; b=aII2/hh52uGp0SiTjEtFWepbAHZ+r/DHIrOvIpJgAduhpbhM05DjYUQdR1FxZXR2PQ 9rPCsvTjkyxOBTiLPZXf6Riyy8pJVL4C36zBC4+m7RzlxkS6BouWmRV2urxIDCsYLl4A 192t662IvKmOpXx7N5ZaZ65dbfcTWzBn3AazA0CaMsmOXF1xKa+IFqh7mr67FSUQLcWm uu8jXisHSiCm6iyhCu4x5zxWYfdZ3k99oY2090xxGZKW32ULE1bhpCXTxH4TZuZgh9T2 e+v1F8XsW5o1kxhZebN6hd+aez4OCADAeLZ12iwtoWNsTzdjFlqnwS+RmfGDzmR17prj 53Iw== ARC-Authentication-Results: i=1; mx.google.com; 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=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a50aacd000000b0043da8aa23adsi136280edc.474.2022.08.05.09.28.58; Fri, 05 Aug 2022 09:29:39 -0700 (PDT) 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; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240962AbiHEQMZ (ORCPT + 99 others); Fri, 5 Aug 2022 12:12:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240873AbiHEQMY (ORCPT ); Fri, 5 Aug 2022 12:12:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A82774370 for ; Fri, 5 Aug 2022 09:12:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2C6B6B8295F for ; Fri, 5 Aug 2022 16:12:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0326C433D7; Fri, 5 Aug 2022 16:12:20 +0000 (UTC) Subject: [PATCH 1/2] DELEG6: Return delegations so clean_diff() works From: Chuck Lever To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org Date: Fri, 05 Aug 2022 12:12:19 -0400 Message-ID: <165971593943.1762917.4388644054248311900.stgit@morisot.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org WARNING: could not clean testdir due to: Making sure b'DELEG6-1' is writable: operation OP_SETATTR should return NFS4_OK, instead got NFS4ERR_DELAY Signed-off-by: Chuck Lever --- nfs4.0/servertests/st_delegation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nfs4.0/servertests/st_delegation.py b/nfs4.0/servertests/st_delegation.py index 875dbc94ded1..ff042cdb69a8 100644 --- a/nfs4.0/servertests/st_delegation.py +++ b/nfs4.0/servertests/st_delegation.py @@ -285,7 +285,7 @@ def testRenew(t, env, funct=None, response=NFS4_OK): c = env.c1 c.init_connection(b'pynfs%i_%s' % (os.getpid(), t.word()), cb_ident=0) lease = c.getLeaseTime() - _get_deleg(t, c, c.homedir + [t.word()], funct, response) + deleg_info, fh, stateid = _get_deleg(t, c, c.homedir + [t.word()], funct, response) c2 = env.c2 c2.init_connection() try: @@ -302,6 +302,10 @@ def testRenew(t, env, funct=None, response=NFS4_OK): break finally: c.cb_command(1) # Turn on callback server + res = c.compound([op.putfh(fh), op.delegreturn(deleg_info.read.stateid)]) + check(res) + res = c.close_file(t.word(), fh, stateid) + check(res) if not noticed: t.fail("RENEWs should not have all returned OK")