Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5266937rwn; Mon, 12 Sep 2022 06:50:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR7czbvK8XQHOoyZ9MXx+ONbJF5y7FwUHwyumm8MiDOZIdeG+O/6Qseo44ySd6mNt7GMHFIW X-Received: by 2002:a17:906:8a79:b0:76f:55ff:5ced with SMTP id hy25-20020a1709068a7900b0076f55ff5cedmr18563314ejc.765.1662990622734; Mon, 12 Sep 2022 06:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662990622; cv=none; d=google.com; s=arc-20160816; b=AahXzaszFNL9n3Yw1F2is//x1R5dLyouLOcPAWwyHjwMwH98rd0SPYKV63ArxfOk7w e/8RIdYJ74ZAs2GekTVm8DfurNlvLfpqvjBQJDMc2TB6webOvRv1qy2xOSijOCUhMDbR 3M99/aW+QDV4AHg0jYPu/xZe5XtNAk01UJVG35ITWeHZARryV/KbhynyxU9Fyd7jqUa5 nsYPdqqZ+jBWKk3/sJsD7r62X8HQfzr3OnbDBFj72wOvoIb2l9s167uppOONXffqhD2a cF4nLEvIJa6mb90I5busxi4fv+qaLr27BW8guCCnSfWp407mGcXZBh5G3tJ7PhVozOXU 5EeQ== 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=DhkDLlXPZR0F9MmGkcf2mIBmolmTb0ndaY4CENQKI54=; b=sYwrKx9o/RxtAeDOHhwYNIz9AkGYAGzfh9bAoA+3sdX6zWQytDDAlWdzshXiiBtbLu pycSaaX+G1LUmpzWT60FwyTHk99cq0X6ggvbsR2dszA4lG3inA67Ii8twnh0NABaXCQl lNkgZI8+ekx0fd94UWrIzByUoJjg8V8VeRODnU60JFApz+t/IaqW21tSqTJYpylLVy1D dLOk76QFo+e2zVtysae6m3Llsw1IEU7Plyq1AgEQn4x5m6ojr9eUXZH6u8CEQgPMS3iY +7pSC9b/nfyfaNfWVZfPyo3fixkkQ4iRvP9rY4le2sd/VyUaogyHHyJkDgMQTbFRBbZj qwKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=ASTwvUlB; 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 x7-20020a05640225c700b004483613511esi6939655edb.618.2022.09.12.06.49.54; Mon, 12 Sep 2022 06:50:22 -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=ASTwvUlB; 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 S229789AbiILNmM (ORCPT + 99 others); Mon, 12 Sep 2022 09:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbiILNmK (ORCPT ); Mon, 12 Sep 2022 09:42:10 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34B62DA86; Mon, 12 Sep 2022 06:42:09 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 8DDA25EE6; Mon, 12 Sep 2022 09:42:08 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 8DDA25EE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1662990128; bh=DhkDLlXPZR0F9MmGkcf2mIBmolmTb0ndaY4CENQKI54=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=ASTwvUlB1d4Z2ipO3/uSMY1JHmP65mxkxMni86jaNxHuS3r5TG3Litu8I8Rj4zSuR HI0+ZQJKv75x2rt9KIzGWJGrLVrYu4zfFbUcErSWM8VTVX0MCF+U3uHrsL/gmnuVUX v0AX0JZFM6lwA8/WBDffk/aUsTxJl9VoIdUJAcDA= Date: Mon, 12 Sep 2022 09:42:08 -0400 To: NeilBrown Cc: Jeff Layton , Theodore Ts'o , Jan Kara , 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 Message-ID: <20220912134208.GB9304@fieldses.org> References: <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> <166284799157.30452.4308111193560234334@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166284799157.30452.4308111193560234334@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 Sun, Sep 11, 2022 at 08:13:11AM +1000, NeilBrown wrote: > On Fri, 09 Sep 2022, Jeff Layton wrote: > > > > The machine crashes and comes back up, and we get a query for i_version > > and it comes back as X. Fine, it's an old version. Now there is a write. > > What do we do to ensure that the new value doesn't collide with X+1? > > (I missed this bit in my earlier reply..) > > How is it "Fine" to see an old version? > The file could have changed without the version changing. > And I thought one of the goals of the crash-count was to be able to > provide a monotonic change id. I was still mainly thinking about how to provide reliable close-to-open semantics between NFS clients. In the case the writer was an NFS client, it wasn't done writing (or it would have COMMITted), so those writes will come in and bump the change attribute soon, and as long as we avoid the small chance of reusing an old change attribute, we're OK, and I think it'd even still be OK to advertise CHANGE_TYPE_IS_MONOTONIC_INCR. If we're trying to do better than that, I'm just not sure what's right. --b.