Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1338583rwn; Thu, 8 Sep 2022 18:09:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR73b1pCmnzkwc5EcQ6TkHcA8jgJoPXy1AH0FstG3+UiQjTxeP5sSvR+aYlOv76l7IGxfcEb X-Received: by 2002:a63:e22:0:b0:41d:3a50:bc55 with SMTP id d34-20020a630e22000000b0041d3a50bc55mr10417985pgl.255.1662685757794; Thu, 08 Sep 2022 18:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662685757; cv=none; d=google.com; s=arc-20160816; b=O7MY7nPs8w7WNVBmjfvzWKzLD5GP06bR7o+Dj7K9Y/7qpVB8CdCkr5T3kjFhNoV90a j8jHlxmBPJpYhUW9ojSBnVENMtdw1OvKk9NWRkjOhI15mRVL7DuoKxoa5GbniQiyMr0n BdlDQAdbrpIux+wx88WTFkYwLXK2BySSj9aXgTFLaB6fKcFG8kl9KyRaqU4YnDyMeSiR qTo+YClDwFgxFR1qMSbJ57vTixrjipi7cLqRDsAwQ0x72vjFNK6C/4RL8qVJgeLHiy7s 9X5NpV1qrc63UmfAMB2ud1/fm6BRVv+2esuoIV5PxLvhjR/H/MgQ0sEWCX/1PjSiNtYE wguQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=C2x9GJp4TlShaKEXC1Pio30Tv65wQ1T4Q0FrrIhdA1o=; b=clLM5fBw/was/dGx8t0NUkocAfS98ftlLM4IER2tgueup/hx0iRtFr68q5NCrxD99W rcLDrRj1WccUcjh2IjxwfJ2yCrVuzjbIpIuwE2U5Ick0t+M7jzD3YkKgWjOtsz01xfT5 6SZyo0kAuUXmrEihC5oDJPAP/KQBNHv/0vDWfq3im0ZNXrvQ2upfoFQhPUwIL2aTqMZU HZtG9/8HLVCjcSN791fE7tBQdXcEjdvceSafvLtHSYTrde/KuZZvUg2dKrtE+5HCGuFq 35O7ljRERz6bSQyLaBfH8m7EAoq2X/3szTK/iFU+fuJttJuDjq/3TS7STQ5OG7CMQOvS wk7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ZMyQmqv3; dkim=neutral (no key) header.i=@suse.de header.b=39TQHHkh; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a056a00148200b0052f20d6e3dcsi520558pfu.196.2022.09.08.18.09.03; Thu, 08 Sep 2022 18:09:17 -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=@suse.de header.s=susede2_rsa header.b=ZMyQmqv3; dkim=neutral (no key) header.i=@suse.de header.b=39TQHHkh; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229437AbiIIBID (ORCPT + 99 others); Thu, 8 Sep 2022 21:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiIIBIC (ORCPT ); Thu, 8 Sep 2022 21:08:02 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F44E7FBC; Thu, 8 Sep 2022 18:08:01 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 57C26336D9; Fri, 9 Sep 2022 01:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662685678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C2x9GJp4TlShaKEXC1Pio30Tv65wQ1T4Q0FrrIhdA1o=; b=ZMyQmqv3qv2C7QbiQYfQhiEaOJTtpN/J6JFnUHKLqfwBYWzPex4W1EaJge939qSwQdC5HM ghZeD5eTIyuc0PONMO1jjwqmGEU+mcBxXgRmgqKh3JbBGLZhsene014Qq2e9XwVrYhKJl+ B1dJrsG0fwDkzg9vHjD6y8IQq5Zaga8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662685678; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C2x9GJp4TlShaKEXC1Pio30Tv65wQ1T4Q0FrrIhdA1o=; b=39TQHHkhhd2csW7nL0fUFys1oyjiywQrJ9WTkt3K8VP4EvlJ9uQPgHBctBYY9QZqyYTpat fwQRe84xarhwA5CQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D0D2F13A93; Fri, 9 Sep 2022 01:07:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lfEpIeaRGmPYPAAAMHmgww (envelope-from ); Fri, 09 Sep 2022 01:07:50 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Trond Myklebust" Cc: "jlayton@kernel.org" , "zohar@linux.ibm.com" , "djwong@kernel.org" , "xiubli@redhat.com" , "brauner@kernel.org" , "bfields@fieldses.org" , "linux-api@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "david@fromorbit.com" , "fweimer@redhat.com" , "linux-kernel@vger.kernel.org" , "chuck.lever@oracle.com" , "linux-man@vger.kernel.org" , "linux-nfs@vger.kernel.org" , "tytso@mit.edu" , "viro@zeniv.linux.org.uk" , "jack@suse.cz" , "linux-ext4@vger.kernel.org" , "linux-btrfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "adilger.kernel@dilger.ca" , "lczerner@redhat.com" , "ceph-devel@vger.kernel.org" Subject: Re: [man-pages RFC PATCH v4] statx, inode: document the new STATX_INO_VERSION field In-reply-to: <166268467103.30452.1687952324107257676@noble.neil.brown.name> References: <20220907111606.18831-1-jlayton@kernel.org>, <166255065346.30452.6121947305075322036@noble.neil.brown.name>, <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>, <166267775728.30452.17640919701924887771@noble.neil.brown.name>, <91e31d20d66d6f47fe12c80c34b1cffdfc202b6a.camel@hammerspace.com>, <166268467103.30452.1687952324107257676@noble.neil.brown.name> Date: Fri, 09 Sep 2022 11:07:47 +1000 Message-id: <166268566751.30452.13562507405746100242@noble.neil.brown.name> 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_NONE,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 Fri, 09 Sep 2022, NeilBrown wrote: > On Fri, 09 Sep 2022, Trond Myklebust wrote: > > > > > IOW: the minimal condition needs to be that for all cases below, the > > application reads 'state B' as having occurred if any data was > > committed to disk before the crash. > > > > Application Filesystem > > =========== ========= > > read change attr <- 'state A' > > read data <- 'state A' > > write data -> 'state B' > > + > > read change attr <- 'state B' > > The important thing here is to not see 'state A'. Seeing 'state C' > should be acceptable. Worst case we could merge in wall-clock time of > system boot, but the filesystem should be able to be more helpful than > that. > Actually, without the crash+reboot it would still be acceptable to see "state A" at the end there - but preferably not for long. From the NFS perspective, the changeid needs to update by the time of a close or unlock (so it is visible to open or lock), but before that it is just best-effort. NeilBrown