Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2434568rwn; Fri, 9 Sep 2022 13:47:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7pUisZUvkTt+vA3K91xZaOoUOi2r+H5/CsSFKdgNgGP3f4v2piCMvWCPPZV5JEq/4nt1tc X-Received: by 2002:a17:907:272a:b0:741:8105:49e2 with SMTP id d10-20020a170907272a00b00741810549e2mr10919897ejl.171.1662756426954; Fri, 09 Sep 2022 13:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662756426; cv=none; d=google.com; s=arc-20160816; b=wzHBRTlAoPHsdTDH+rEhXs/BLp6uUQQTIH8aHZWDX3kWsWI/OEwCdZbg6vwE5uLWNR th2jhoTcdLgIcY5hXCg+PxetM/+mDkxi8+bTmqm5aLk4vuBmBdgBSwXNQRiMfV8RsT6C 9Td5oPngCNLfPPhcUbrZc/99gOb5yW+5kdX5fsczWTPMqjidVxsbpUMnadt8IIVkAJIK ohyPG5P0nbGIspK2tHaF67posNR8aTgOxqZtShHkk3K3YnF9ly9WlupQBrXo2rTzjLaq bt9JQ4rj+6YoSNClQ2r8LgKX9bWUWOMPJ9gZK8Hd5sGCfyvKaN2TdtNbguCwdnF+G/A2 QnNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:subject:cc:to:from:date :message-id:content-transfer-encoding:mime-version; bh=Nwy0WwP1amQqxaDEiwgPMDFu3JXOoEseL3ylh8XXtCM=; b=InYVR+q4Xil2+yEMq7lTxH8ewcEyPc7XfUph0ACdG+fJhLpObfhy8TnzIpPyKOXvtS lyAzVEuSzn5jZPZDpzFN3Fx2jMtD+08RLLrltd0hWPxjyl0YcHHGCzKiHYAISEWLsgrN MnIUC4ZJz9N2QGMTo5UuzZXNb7w0FDRevXtKYYouv+2hAp1Rk3/VWAX4XmjMO8DSYsgo 2dLVyPoHgwgbYPgv/QTBoZVjsVEWozR0EPtx0RNhI1WHcA9vIbtaAu+2yZkh+xvaDPn7 JK53vYu6bvYvn+oqZ5rGnfl9Q//AwVHx9ekQEv1ADBN+pxAHk9lPa29fMmC95Xf+1u1t QI2g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l26-20020aa7c31a000000b0044811b18be1si1063641edq.631.2022.09.09.13.46.31; Fri, 09 Sep 2022 13:47:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231593AbiIIUo5 (ORCPT + 99 others); Fri, 9 Sep 2022 16:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiIIUou (ORCPT ); Fri, 9 Sep 2022 16:44:50 -0400 X-Greylist: delayed 613 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 09 Sep 2022 13:44:35 PDT Received: from mail.stoffel.org (li1843-175.members.linode.com [172.104.24.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6AD518E3C; Fri, 9 Sep 2022 13:44:28 -0700 (PDT) Received: from quad.stoffel.org (068-116-170-226.res.spectrum.com [68.116.170.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.stoffel.org (Postfix) with ESMTPSA id 7A8FB270B5; Fri, 9 Sep 2022 16:34:14 -0400 (EDT) Received: by quad.stoffel.org (Postfix, from userid 1000) id 2733AA7E79; Fri, 9 Sep 2022 16:34:14 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <25371.41798.87576.861659@quad.stoffel.home> Date: Fri, 9 Sep 2022 16:34:14 -0400 From: "John Stoffel" To: Jeff Layton Cc: "J. Bruce Fields" , Theodore Ts'o , Jan Kara , NeilBrown , adilger.kernel@dilger.ca, djwong@kernel.org, david@fromorbit.com, 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 In-Reply-To: <44efe219dbf511492b21a653905448d43d0f3363.camel@kernel.org> References: <79aaf122743a295ddab9525d9847ac767a3942aa.camel@kernel.org> <20220907125211.GB17729@fieldses.org> <771650a814ab1ff4dc5473d679936b747d9b6cf5.camel@kernel.org> <20220907135153.qvgibskeuz427abw@quack3> <166259786233.30452.5417306132987966849@noble.neil.brown.name> <20220908083326.3xsanzk7hy3ff4qs@quack3> <02928a8c5718590bea5739b13d6b6ebe66cac577.camel@kernel.org> <20220908155605.GD8951@fieldses.org> <9e06c506fd6b3e3118da0ec24276e85ea3ee45a1.camel@kernel.org> <20220908182252.GA18939@fieldses.org> <44efe219dbf511492b21a653905448d43d0f3363.camel@kernel.org> X-Mailer: VM 8.2.0b under 27.1 (x86_64-pc-linux-gnu) X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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-nfs@vger.kernel.org >>>>> "Jeff" == Jeff Layton writes: > On Thu, 2022-09-08 at 14:22 -0400, J. Bruce Fields wrote: >> On Thu, Sep 08, 2022 at 01:40:11PM -0400, Jeff Layton wrote: >> > Yeah, ok. That does make some sense. So we would mix this into the >> > i_version instead of the ctime when it was available. Preferably, we'd >> > mix that in when we store the i_version rather than adding it afterward. >> > >> > Ted, how would we access this? Maybe we could just add a new (generic) >> > super_block field for this that ext4 (and other filesystems) could >> > populate at mount time? >> >> Couldn't the filesystem just return an ino_version that already includes >> it? >> > Yes. That's simple if we want to just fold it in during getattr. If we > want to fold that into the values stored on disk, then I'm a little less > clear on how that will work. I wonder if this series should also include some updates to the various xfstests to hopefully document in code what this statx() call will do in various situations. Or at least document how to test it in some manner? Especially since it's layers on top of layers to make this work. My assumption is that if the underlying filesystem doesn't support the new values, it just returns 0 or c_time? John