Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3759750rwb; Tue, 16 Aug 2022 08:19:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4irna0ZOZZT1OktxKcPEiVJNE4HAI9d6Es9610v8sJAEjlrgaXEbi7JhaSnkMtinyHC76u X-Received: by 2002:a17:903:234f:b0:16f:18a6:451a with SMTP id c15-20020a170903234f00b0016f18a6451amr21895068plh.82.1660663195333; Tue, 16 Aug 2022 08:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660663195; cv=none; d=google.com; s=arc-20160816; b=WZtA0YSdzX1W2nKAEutEqaKIP468uXAuSF6HuqPm410ew79/L8ASjETQ8w6aXSoHis ug7QGMo76J26UsgVuW74mQ49hLq2c7Z7jDQR85E0Iq4bRSHVyp4lZeMo2C5yt0LgdNt+ DtMCswQRzVLMSvFphn7+MnAsM6LgrUwtq7Haase1zFSmrFfhZCz4rRuO2UtySd63B+mj KrE9UrXDyA4fi9bK2ZEdskYy6oK4O9c6wmqTCa9/S3JUYNA1Kb4E3nCpn+fdzfKiI19L Py/FI2So/qz77g2nF5fXgzMp17il/PJwhueSnJ5WRhyvrCBgeFv5BQSU4N8U8wrwci0f m2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=2BJPLzBCkQ7/C8SjM6cs7Dqcq6n9EfCcJ5ipAL7bprk=; b=OCz9cBQT7LV5nRZddiM5s+rPw2a5y0wBmNJSSVh05cUHeFcESE7vcFpvnJtp5Tbzv4 VOA40sXv8XAxRpyEF+9b4GalnCaugYVwRRb4q0NF7bGr+4lvRBP28ki1d1jTBMNMrc85 w/3PIjOyD/oIGz2gM7Fs1eyXyaAjle1lui7tYQptEqJOR91e61pYygZKyxjA/cdVotEN RubZBh9BvyejUzy8jjDwbNriDUzX4NEJ/cunXVjdmvNITCgaA33V/YPFThVR7YN3/o2P 4KLyLWI8znDdF2LukgPFQ1u6/FuxjMFea9n8UTpxy7yjqvTYWwYePTNd2CB4vBpi5mPf wogQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XDUH8kEu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a63530a000000b0042814932da7si7886971pgb.403.2022.08.16.08.19.33; Tue, 16 Aug 2022 08:19:55 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XDUH8kEu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbiHPPPg (ORCPT + 99 others); Tue, 16 Aug 2022 11:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235843AbiHPPPT (ORCPT ); Tue, 16 Aug 2022 11:15:19 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4288174363 for ; Tue, 16 Aug 2022 08:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660662915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2BJPLzBCkQ7/C8SjM6cs7Dqcq6n9EfCcJ5ipAL7bprk=; b=XDUH8kEuOMQMjJ9Nk4VW8U1AyTAOOFyZen/PrPECPcqgrdi2IIdNwFP4SkatIlLajAR6oI B7h6LBSYYXZ/oZRL1X8kb0SvyIARGrm4stIVDXi4Mnw4BMKw71Yl2L6HdYN92k9PZlVCqe N55TGqQBYCy1lAUNsIiYMI4z0BP/1Es= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-507-RdpwO5JfPpywgyNrBQY1QQ-1; Tue, 16 Aug 2022 11:15:12 -0400 X-MC-Unique: RdpwO5JfPpywgyNrBQY1QQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AD2A78339C3; Tue, 16 Aug 2022 15:15:04 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.72]) by smtp.corp.redhat.com (Postfix) with ESMTP id BDD5F2166B29; Tue, 16 Aug 2022 15:15:03 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20220816134419.xra4krb3jwlm4npk@wittgenstein> <20220816132759.43248-1-jlayton@kernel.org> <20220816132759.43248-2-jlayton@kernel.org> <4066396.1660658141@warthog.procyon.org.uk> To: Jeff Layton Cc: dhowells@redhat.com, Christian Brauner , viro@zeniv.linux.org.uk, linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org Subject: Re: [PATCH 1/4] vfs: report change attribute in statx for IS_I_VERSION inodes MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12636.1660662903.1@warthog.procyon.org.uk> Date: Tue, 16 Aug 2022 16:15:03 +0100 Message-ID: <12637.1660662903@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Layton wrote: > I think we'll just have to ensure that before we expose this for any > filesystem that it conforms to some minimum standards. i.e.: it must > change if there are data or metadata changes to the inode, modulo atime > changes due to reads on regular files or readdir on dirs. > > The local filesystems, ceph and NFS should all be fine. I guess that > just leaves AFS. If it can't guarantee that, then we might want to avoid > exposing the counter for it. AFS monotonically increments the counter on data changes; doesn't make any change for metadata changes (other than the file size). But you can't assume NFS works as per your suggestion as you don't know what's backing it (it could be AFS, for example - there's a converter for that). Further, for ordinary disk filesystems, two data changes may get elided and only increment the counter once. And then there's mmap... It might be better to reduce the scope of your definition and just say that it must change if there's a data change and may also be changed if there's a metadata change. David