Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4301302rwe; Tue, 30 Aug 2022 07:54:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR7zTd2sO4u/kWqw2J2mRdcg+NVIqrboZiBTFnHwpAfB7QV0wFqxEOohlQSCIz86uaxjRbJz X-Received: by 2002:a65:6953:0:b0:42a:4612:2d7b with SMTP id w19-20020a656953000000b0042a46122d7bmr18837887pgq.253.1661871260434; Tue, 30 Aug 2022 07:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661871260; cv=none; d=google.com; s=arc-20160816; b=exsMKJ87wo+iKDPOwzEKhmuqb/XleDBhmiefE4Fm/4X7x0kBfun1eQcXzdSZZF6GFq hCuUkjiazI8bQ99JMjnm8+lMy5wyAoPtyGgUf9NwO3azp6mZnyda3n2/1T4So8NY70WU 7E3TU2S/jTcexyNREqS8QZQgCHZeBvsUPgqY572zCB/0zBtYUtlb+tyyIaCzWN0q75cm FUhcLjlOQtHAbOOTp6g5PjCkiAG7Kys3aLruwZov9mWETX7hHwcGsJm2QVsx14vgtX+2 3WYJCtws6mDQXRv0Ce3nItvWlNUsK5Yxom0W9zUiOKlQAKfrIUWNLC9S9Git6i8KOsOw Iwzw== 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=gzW+gZ2zemZDBvDj7lxziqabHjDHurKUBq1mFGCGqI8=; b=Otmbs9CICN/cEK07U3mesLxrtDK6WMBmdPjshdze0+3lsmJ1Mplu9griAlxRuIrIX9 KbG5jXd54TLhU98znJviShgFb3kAPflIHHn3sJht6lFB8RDtOpLfdVticWL9X/atAx6w QXoEnuhm6MRUg++l78a5BqT4/BAvp0TL+4Y+tQlIJOalXNWPmfiuFT1nQMnxGn8XiQjA ydjU+Yv+8Skw3Me05LMRZB+0P4e34DIF/R2i97xd6kCZWfZ08QXb/vvWOovhb877Gv+0 erH0LtEfqt2YAc0y1BizS2yYiITpRBUW46gE61BxLh3f3B4qe4YTiaGK0aRuhreJQ6JB rbCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=BSjy+CUy; 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 q18-20020a63f952000000b0042aff6e2846si2326418pgk.251.2022.08.30.07.53.58; Tue, 30 Aug 2022 07:54:20 -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=BSjy+CUy; 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 S229575AbiH3Ood (ORCPT + 99 others); Tue, 30 Aug 2022 10:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiH3Ood (ORCPT ); Tue, 30 Aug 2022 10:44:33 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B711EBD772; Tue, 30 Aug 2022 07:44:31 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 2FB115FF7; Tue, 30 Aug 2022 10:44:30 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 2FB115FF7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1661870670; bh=gzW+gZ2zemZDBvDj7lxziqabHjDHurKUBq1mFGCGqI8=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=BSjy+CUyTLErHrViU+opXQ2cWXmOTL2ZfD2Acjf0lTMt0/fw4MoPaPVE4+/K9LU3V okT4PSZs6XXSuC8E4FQ06bFdTWWqmvEZX4iKGOFmVxFMcL/5lkLrui1Y56VBc/Uxzs 7nrPrYvha+41+GPYOQlBKo+PMXNaYlj2yPaWPkxA= Date: Tue, 30 Aug 2022 10:44:30 -0400 To: Jeff Layton Cc: NeilBrown , Dave Chinner , tytso@mit.edu, 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, jack@suse.cz, brauner@kernel.org, linux-api@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ceph@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org, Colin Walters Subject: Re: [PATCH v3 1/7] iversion: update comments with info about atime updates Message-ID: <20220830144430.GD26330@fieldses.org> References: <20220826214703.134870-1-jlayton@kernel.org> <20220826214703.134870-2-jlayton@kernel.org> <20220829075651.GS3600936@dread.disaster.area> <549776abfaddcc936c6de7800b6d8249d97d9f28.camel@kernel.org> <166181389550.27490.8200873228292034867@noble.neil.brown.name> <20220830132443.GA26330@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) 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, Aug 30, 2022 at 09:50:02AM -0400, Jeff Layton wrote: > On Tue, 2022-08-30 at 09:24 -0400, J. Bruce Fields wrote: > > On Tue, Aug 30, 2022 at 07:40:02AM -0400, Jeff Layton wrote: > > > Yes, saying only that it must be different is intentional. What we > > > really want is for consumers to treat this as an opaque value for the > > > most part [1]. Therefore an implementation based on hashing would > > > conform to the spec, I'd think, as long as all of the relevant info is > > > part of the hash. > > > > It'd conform, but it might not be as useful as an increasing value. > > > > E.g. a client can use that to work out which of a series of reordered > > write replies is the most recent, and I seem to recall that can prevent > > unnecessary invalidations in some cases. > > > > That's a good point; the linux client does this. That said, NFSv4 has a > way for the server to advertise its change attribute behavior [1] > (though nfsd hasn't implemented this yet). It was implemented and reverted. The issue was that I thought nfsd should mix in the ctime to prevent the change attribute going backwards on reboot (see fs/nfsd/nfsfh.h:nfsd4_change_attribute()), but Trond was concerned about the possibility of time going backwards. See 1631087ba872 "Revert "nfsd4: support change_attr_type attribute"". There's some mailing list discussion to that I'm not turning up right now. Did NFSv4 add change_attr_type because some implementations needed the unordered case, or because they realized ordering was useful but wanted to keep backwards compatibility? I don't know which it was. --b. > We don't have a good way to > do that in userland for now. > > This is another place where fsinfo() would have been nice to have. I > think until we have something like that, we'd want to keep our promises > to userland to a minimum. > > [1]: https://www.rfc-editor.org/rfc/rfc7862.html#section-12.2.3 . I > guess I should look at plumbing this in for IS_I_VERSION inodes... > > -- > Jeff Layton > >