Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7006808rwn; Tue, 13 Sep 2022 12:14:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6OkuPBZBuqVubKuop4PfARnQEq9YX3W4rmzSqBM/pb6/vQoc6ZKct1runyfk6zW/bKODkE X-Received: by 2002:a17:907:3ea7:b0:77e:6057:3e1a with SMTP id hs39-20020a1709073ea700b0077e60573e1amr6782866ejc.470.1663096474205; Tue, 13 Sep 2022 12:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663096474; cv=none; d=google.com; s=arc-20160816; b=scIJ2zloddllYyZgRbPmfG6/5bOd203AnvNADTQnM2quTY59aONDI2EU23xFhEd+ic tG+/p7Qy/B41tWhx5fKtf/+VwzphOEmcCLVOTZ2FEqZCQBQv/9eCRTf1igmv7FO9W6/e 1h7c+n+a6V1xG7EkLm2GCbvAq0TEeXL5aRS7n/NE+UlKOOqJLZpXe4acgX2M/JX9RzzP gX09GE/i0XJmI4hNdvltF/vNkL3kVxpkVP97Lazpk+cWQQaCOgFdmJkkfvw8BdgzQpF1 UHuoewJcSSCGgVciAaQqlphomwvyC8qCB1HUHXiDaMUDxMQeKTiN7IxNdlfoXpkri8tZ Gxow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date :dkim-signature:dkim-filter; bh=S1FczSiJGn87g+MyReY8AFWKAt8dgGXuJUt9MX2WMo4=; b=b38zoaCg8vaWO5JziMGnDAeExuHFy7v1VKsqfxKr0ED3c8M7JuFKa1wtoO+lBLJe5M s9j3zyk7+SZXZ0J0oPystaR2JZSLQuR0yMB3ARCDWXvd2w/0rz6o1wp/kxj29JhM7bGs ENDyzIsOouakV6tHyqOdxfeofvLsPttlo0N6A72R07lqmEFIZ35/G9TwRvE6+sa2Ggva rhNKP+7CYcizZ/gcC8/fYdzkCd9VC9ChuD4FvvhGyhIwdxzNM/FP6r82bnjDH2ionQN4 714422o+XGtuQSKgLQFk6+gpkJIVX6MUymih1i8b1uvph+Ng0nGohRHEN99/xeBQwPxz 1vgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=e9yfdhq+; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr9-20020a1709073f8900b0077fad1e7d19si3440713ejc.433.2022.09.13.12.14.01; Tue, 13 Sep 2022 12:14:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=pass header.i=@fieldses.org header.s=default header.b=e9yfdhq+; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fieldses.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbiIMTDo (ORCPT + 99 others); Tue, 13 Sep 2022 15:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231698AbiIMTC6 (ORCPT ); Tue, 13 Sep 2022 15:02:58 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB08FB; Tue, 13 Sep 2022 12:02:27 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id A58596033; Tue, 13 Sep 2022 15:02:26 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org A58596033 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1663095746; bh=S1FczSiJGn87g+MyReY8AFWKAt8dgGXuJUt9MX2WMo4=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=e9yfdhq+6MIfMZe4VyFmTjEOjj3+36k0s1aV+fmLjcr2i6FYzioUFT8UfPNKCO+Ow nAIkCdL9TdB5u0UhxgLck/7e0iMf4o1u6orC4cYRddrUw+objnGjo2k7yJj8J3SBg6 cXM0mcrYl9Fp8X6LBi2TvwUP22Pnun1OwMazVq4A= Date: Tue, 13 Sep 2022 15:02:26 -0400 To: NeilBrown Cc: Dave Chinner , Jeff Layton , Theodore Ts'o , Jan Kara , adilger.kernel@dilger.ca, djwong@kernel.org, trondmy@hammerspace.com, viro@zeniv.linux.org.uk, zohar@linux.ibm.com, xiubli@redhat.com, chuck.lever@oracle.com, lczerner@redhat.com, brauner@kernel.org, fweimer@redhat.com, linux-man@vger.kernel.org, linux-api@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [man-pages RFC PATCH v4] statx, inode: document the new STATX_INO_VERSION field Message-ID: <20220913190226.GA11958@fieldses.org> References: <20220908155605.GD8951@fieldses.org> <9e06c506fd6b3e3118da0ec24276e85ea3ee45a1.camel@kernel.org> <20220908182252.GA18939@fieldses.org> <44efe219dbf511492b21a653905448d43d0f3363.camel@kernel.org> <20220909154506.GB5674@fieldses.org> <125df688dbebaf06478b0911e76e228e910b04b3.camel@kernel.org> <20220910145600.GA347@fieldses.org> <9eaed9a47d1aef11fee95f0079e302bc776bc7ff.camel@kernel.org> <20220913004146.GD3600936@dread.disaster.area> <166303374350.30452.17386582960615006566@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166303374350.30452.17386582960615006566@noble.neil.brown.name> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) 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, 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-ext4@vger.kernel.org On Tue, Sep 13, 2022 at 11:49:03AM +1000, NeilBrown wrote: > Invalidating the client cache on EVERY unmount/mount could impose > unnecessary cost. Imagine a client that caches a lot of data (several > large files) from a server which is expected to fail-over from one > cluster node to another from time to time. Adding extra delays to a > fail-over is not likely to be well received. > > I don't *know* this cost would be unacceptable, and I *would* like to > leave it to the filesystem to decide how to manage its own i_version > values. So maybe XFS can use the LSN for a salt. If people notice the > extra cost, they can complain. I'd expect complaints. NFS is actually even worse than this: it allows clients to reacquire file locks across server restart and unmount/remount, even though obviously the kernel will do nothing to prevent someone else from locking (or modifying) the file in between. Administrators are just supposed to know not to allow other applications access to the filesystem until nfsd's started. It's always been this way. You can imagine all sorts of measures to prevent that, and if anyone wants to work on ways to prevent people from shooting themselves in the foot here, great. Just taking away the ability to cache or lock across reboots wouldn't make people happy, though.... --b.