Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5518026pxb; Wed, 26 Jan 2022 13:59:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYi2z6OrmB2ojnTTxtCTJy8nSthLlk8M+6gkcC6tXMB9if/7/opZfG+DBA4wUjAabX3tkE X-Received: by 2002:a63:610b:: with SMTP id v11mr618556pgb.201.1643234368960; Wed, 26 Jan 2022 13:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643234368; cv=none; d=google.com; s=arc-20160816; b=x4EvnUyqjcrIS4033uWAxX1tIcffTqZJpMymmLAn3ZkZss+IFfLLWqOA5Yucn3tEg3 YJcvzTIYDWKrKwIiM78nX2RcczBA//52WhD1Yb6hOSgTtFo7u5mL6EOBC25dZfwH8o98 hPX4IGvWvd6RYiLKKSs3MV3pIlESAAjL6D4Fa+h4JGnrxAINJq+ejRLYDps/dVfGGaNl /QO5aX7zae6SSGq1Cx6r7OmAVeziNqVcT1mHxRprajMMSb5IruKyT9gjYEw5b/DI75Dq UJBTtKSqX6RSg6UqCg6uYICHw0Av4ZySJee+ETg1BkDyFs7jQ/IAANf8R/uO8i2xjqN+ BCCA== 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=yWIPBjc/ayFOp93Cwz9DigadpSLQ2JBCspo6Ne84kdI=; b=gSJFGPaXJqyzknt309SaQ8bYNX9xgErZvj24Ll84aZb7kqQJq7U3zN7Jjq3YLEgjU2 O8reZ9usTxYHfurzFAwG6lMXurGibJsdnpFvY9sXT+Kb/KVUz6Jx5YY78Wesi21ha41t Ww1NZ2+lNxdKHg1NYtFW5X/PanFuUpEiMWhjy79E5llZusSXvVXXhNmeqK21UaTxm/g/ ZSkfju6YLtnd0/cTLwLNPmwFlb6Je2W2+7hBX7wemGlVjG2+omwo2aqD5oF6b2h50JaQ Nfc77Yd9P1LEz9N4TYMC8oBNkqgE+U2smySgD3X5w/+5tTZB4DfA4xZ+UUQQZoPJBAqa qJjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=jSPMGqKR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g132si327731pgc.29.2022.01.26.13.59.06; Wed, 26 Jan 2022 13:59:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=jSPMGqKR; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 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 S242811AbiAZP3q (ORCPT + 99 others); Wed, 26 Jan 2022 10:29:46 -0500 Received: from mta-102a.oxsus-vadesecure.net ([51.81.61.66]:50035 "EHLO nmtao102.oxsus-vadesecure.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236282AbiAZP3p (ORCPT ); Wed, 26 Jan 2022 10:29:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; bh=yWIPBjc/ayFOp93Cwz9DigadpSLQ2JBCspo6Ne 84kdI=; 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=1643210983; x=1643815783; b=jSPMGqKRLGwHGOxypYMvG0E9w2AGhWXhZYUDmEWW9w97ZVVZ35FSrDU yQBc18nTbDq/1sLp99NiuPpqO/UfoUNkS9dROjcsJlGyPU8BdO/CelPxjkBYbqnwBeZWns+ zSO60FZzKosOqDEMrGZDjuWLCyJp2SNCAWtSjVzh3TtTTb2WX9izPRXKfAMfRZWThoykcXc ttHuUoVT/9Euk5U87ALOXrAUk0HfzUB34rHwy10erVvNCGt1gSGltLBQ8MqUYrPfxVTqtyj BOrgxNNY3b4qEQvporFCZnhJWs18PyYnPjXuFDBfCXLibC4u59OJGydOH7Td3kA/MfxKRRx Vfw== Received: from FRANKSTHINKPAD ([76.105.143.216]) by smtp.oxsus-vadesecure.net ESMTP oxsus1nmtao02p with ngmta id be366a9f-16cddbaed22bb2a2; Wed, 26 Jan 2022 15:29:43 +0000 From: "Frank Filz" To: "'J. Bruce Fields'" , "'Volodymyr Khomenko'" Cc: References: <20220126141053.GA29832@fieldses.org> In-Reply-To: <20220126141053.GA29832@fieldses.org> Subject: RE: [PATCH] pynfs minor: fixed Environment._maketree to use proper stateid during file write Date: Wed, 26 Jan 2022 07:29:43 -0800 Message-ID: <0bc601d812c9$8b52b750$a1f825f0$@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us Thread-Index: AQIVDtIiHTx/S/b9xSLpXT6P8f1wowI/AdUDq+l8q6A= Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Fri, Jan 21, 2022 at 03:06:57PM +0200, Volodymyr Khomenko wrote: > > > > > From 63c0711f9cd8f8c0aaff7d0116a42b5001bddcd2 Mon Sep 17 00:00:00 > 2001 > > From: Volodymyr Khomenko > > Date: Fri, 21 Jan 2022 14:52:28 +0200 > > Subject: [PATCH] Minor: fixed Environment._maketree (used by init) to > > use proper stateid during file write > > > > _maketree is a part of generic init sequence for server41tests so the code > should be generic. > > Using zero stateid (when "other" and "seqid" are both zero, the > > stateid is treated as a special anonymous stateid) is a special > > use-case of anonymous access so it must not be used during generic > initialization. > > OK, applying, but I'm a little wary. If a server isn't accepting the zero stateid > here then I think that's a server bug. Yea, that makes me nervous about a server bug also. Maybe we should have explicit special stateid tests. It's always tricky because initialization of the tree requires a bunch of stuff to work before it's explicitly tested... Frank > > Signed-off-by: Volodymyr Khomenko > > --- > > nfs4.1/server41tests/environment.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/nfs4.1/server41tests/environment.py > > b/nfs4.1/server41tests/environment.py > > index 14b0902..0b7c976 100644 > > --- a/nfs4.1/server41tests/environment.py > > +++ b/nfs4.1/server41tests/environment.py > > @@ -198,7 +198,7 @@ class Environment(testmod.Environment): > > log.warning("could not create /%s" % b'/'.join(path)) > > # Make file-object in /tree > > fh, stateid = create_confirm(sess, b'maketree', tree + [b'file']) > > - res = write_file(sess, fh, self.filedata) > > + res = write_file(sess, fh, self.filedata, stateid=stateid) > > check(res, msg="Writing data to /%s/file" % b'/'.join(tree)) > > res = close_file(sess, fh, stateid) > > check(res) > > -- > > 2.25.1 > >