Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2273186pxb; Sun, 24 Apr 2022 09:35:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4RKlqOgFDCQeev945W5mHRvwMnNImFPHNmCWrjv1OY/PyEZY29yiYkG7095HrnWCNnxE4 X-Received: by 2002:a17:902:d54d:b0:15d:2ff:b0e2 with SMTP id z13-20020a170902d54d00b0015d02ffb0e2mr3395955plf.131.1650818102083; Sun, 24 Apr 2022 09:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650818102; cv=none; d=google.com; s=arc-20160816; b=u1QuaVi7TxmpV2F92M9GaLru8gVXBeit7FvA9bI+eooZXL2moKmpGvF6fQFesPGgHM eokJ6bH0HPs0c4rJt3/UQez0TYxWBdYbaWcCp6+xyxTd8DlHxFM34ztfeIeZ3P3R4Elc Dxu0AkFg06K1DX3k2C2qkr+DzkGHX/cvN5FyKxbkE0uNKQrmrZZIRxQXKH6NDzSBVouY DxjwRGlUzl/80OYLhCOQ3g9LyUdr6evLgsckUG+PNe8FImmYAbaUHTA3l/4RNjd+Fap1 48RGSsQNRBhFZxVInOt4YUTD/Akt+xbgyJbNYJuiRtNBS5wM5pyolONtMXbHVxBxKl9u E2Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=zXFCjk8HvPDJxXnDMNoBRzBf2uA9PN0nX4nl/X/xwjM=; b=T8BkxO4lztP9XwnnNEIi3lzY+q+XR5KaiGe1pbmHclapfDx67wwWmyX3i9trqnsZ9Y Ad7mxpHZeQG3V7IOP6/xd4pYA2FifeWfbo+Z0DeAcUP24hB0fnBGvsAFafVWDdOLCm9J B2spd+yE6p7lwDey7d6nII8njh8hJO3ktVMwSlVUbOjTOj86rcJF6kG0OYv3H34QC46d DMCU+MavhAHkqvVzGOUA95/TN4R/VxqvlKuIr366mw+TM5AWaWi6g+mzhjyWL+AComQi XE8juxz5Wn+yglGSQ6K3rsKOQgxqsGHqzk12oTY0+tPq4FjJdMN9vEnaMUBDxp1w1vIE WJyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=aPRUYR76; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9-20020a170902820900b0015ba4e6f594si7769687pln.465.2022.04.24.09.34.35; Sun, 24 Apr 2022 09:35:01 -0700 (PDT) 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=pass header.i=@fieldses.org header.s=default header.b=aPRUYR76; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235345AbiDXPKj (ORCPT + 99 others); Sun, 24 Apr 2022 11:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234141AbiDXPK0 (ORCPT ); Sun, 24 Apr 2022 11:10:26 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2929666F91 for ; Sun, 24 Apr 2022 08:07:26 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 6610A2085; Sun, 24 Apr 2022 11:07:25 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 6610A2085 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1650812845; bh=zXFCjk8HvPDJxXnDMNoBRzBf2uA9PN0nX4nl/X/xwjM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aPRUYR76hZlRMW6EdiVVl0JVx5G9LH0sqgRfKBah3gHejDmJXTPwK91NVEzl8pY7L H3zPMUBmXrDnngXNJTFkAjhAPBcOCTZwgl0QtGEu9+8Z/sHuUkIqEF4W20T+p9m6cM hTazk7vNamUUVyC/UmnY+R7b96/DNhwiYkNk8vfk= Date: Sun, 24 Apr 2022 11:07:25 -0400 From: "J. Bruce Fields" To: Rick Macklem Cc: "crispyduck@outlook.at" , Chuck Lever III , Linux NFS Mailing List Subject: Re: Problems with NFS4.1 on ESXi Message-ID: <20220424150725.GA31051@fieldses.org> References: <4D814D23-58D6-4EF0-A689-D6DD44CB2D56@oracle.com> <20220421164049.GB18620@fieldses.org> <20220421185423.GD18620@fieldses.org> <20220422151534.GA29913@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) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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 On Fri, Apr 22, 2022 at 11:03:17PM +0000, Rick Macklem wrote: > J. Bruce Fields wrote: > > Actually (sorry I'm slow to understand this)--why would our 4.1 server > > ever be returning STALE on a close? We normally hold a reference to the > > file. > Well, OPEN_RESULT_PRESERVE_UNLINKED is not set in the Open reply, > so even if it normally does so, it is not telling the ESXi client that it > will retain it. Yeah, we don't guarantee it, but I thought in this cases we did. The object we use to represent the open stateid (indirectly) holds a reference on the inode that prevents it from being removed, so the filehandle lookup should still work. If I had the time, I'd write an open-rename over-close test in pynfs and see if we could reproduce this, and if so see what's happening. > > Oh, wait, is subtree_check set on the export? You don't want to do > > that. (The freebsd server probably doesn't even give that as an > > option?) > Nope, Never heard of it. It adds a reference to the parent into the filehandle, so we can foil filehandle-guessing attacks on exports of subdirectories of filesystems. With the major drawback that it breaks on cross-directory rename, for example. So it's not the default. --b.