Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5229614rwn; Mon, 12 Sep 2022 06:24:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5PwMS08gEgomZCzqgltrg/nC4m5wa7FrbltVVs+KZgk58DzQk40eVUiWHY69lS7wvWmLqr X-Received: by 2002:a05:6402:2692:b0:451:6515:1946 with SMTP id w18-20020a056402269200b0045165151946mr8102979edd.417.1662989056923; Mon, 12 Sep 2022 06:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662989056; cv=none; d=google.com; s=arc-20160816; b=icU7hwRMGUYYc8GDl1TABEm/wkKOa2UepRr1B2deQsCLb0S4/vQhFYEL+7GczV+l31 +eIqOJPE9JLLTVRKLp1vS9dOqyrvdJrEYABkuel2lV89fS7hObGBfmC+J4VEvnQTPbbQ ayj0nQuO2brA3VMJju7mp8Z5Tu+WYfG1+u0mX/gfWveGtYJnzb/TaJEvl4A7UVLWjOIp qL4T7n/vy2R58Pcj3JHLxlYUSbzuH1VVjQwiQKWQLYj1dQZXuYa/oMI/UrNnqYDaQwqK fg4krN0D+j8zEbNAqQuEojDZIbMze8q3kGkdBHIrleQfK2Bhz/Adit1M5Kvz7HNlXXwq owig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=QcJ4hYnOykjT5bKhT2L+jboPTMLweg9s7FN9sWH8lgs=; b=df0jtcpLGFBhj3kDdqb4TiaLxFEaX7h2aJZWr4FnCRmF+VO0wGnQkEHAxGj5E8+ix5 UHnWHvIa4cLC+caVJGGRqeHSuHYbh/exIwm0M/v2CsAu8y81tUl1GQY25H9PzpYGoBRK mFz+HNb8LOT8prwReyQf3SnN6ux0i/tgAbUeZnpIE1vOpULGaK1i4itLmMcv7bhL/niO eDnIpsIr2B9b7qBugqWiU4vxJnjZ610Jd/2gGF5KEtMCIqbkTETeMAe9fPjAYQtdABIV HYQSZIu5JglSrzqh8NalEpqrTdjXnCbEfuEA25ajQtl/oXjXTcDKbRrimd1Dxfd/G69Y YVOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P0lz18Ro; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv18-20020a17090760d200b00778c4f95e77si7520237ejc.481.2022.09.12.06.23.50; Mon, 12 Sep 2022 06:24:16 -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=@redhat.com header.s=mimecast20190719 header.b=P0lz18Ro; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbiILNVD (ORCPT + 99 others); Mon, 12 Sep 2022 09:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiILNVB (ORCPT ); Mon, 12 Sep 2022 09:21:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F620220DC for ; Mon, 12 Sep 2022 06:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662988859; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QcJ4hYnOykjT5bKhT2L+jboPTMLweg9s7FN9sWH8lgs=; b=P0lz18RoPsCiC8i8NmPB2XTNveHaqOBnhbKecRmw4uwBx5ycGe4rYcmvsjfmNfUXXhMJ1h 7SaG89OgkcDaio35Oc/IasjjMWYMJrmXP5WiPtA7QmwR16HJcIL2eapMMT7MlTlO9n20zq 9nVQFlfTttRCKr0jsOXWtpaZ+fHVZN8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-668-L4qFUPMqPwu7x2MEi03oxQ-1; Mon, 12 Sep 2022 09:20:54 -0400 X-MC-Unique: L4qFUPMqPwu7x2MEi03oxQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 62D7529ABA1F; Mon, 12 Sep 2022 13:20:53 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.57]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7BE4249BB60; Mon, 12 Sep 2022 13:20:48 +0000 (UTC) From: Florian Weimer 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, 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 References: <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> <20220909154506.GB5674@fieldses.org> <125df688dbebaf06478b0911e76e228e910b04b3.camel@kernel.org> <20220910145600.GA347@fieldses.org> <9eaed9a47d1aef11fee95f0079e302bc776bc7ff.camel@kernel.org> <87a67423la.fsf@oldenburg.str.redhat.com> <7c71050e139a479e08ab7cf95e9e47da19a30687.camel@kernel.org> Date: Mon, 12 Sep 2022 15:20:46 +0200 In-Reply-To: <7c71050e139a479e08ab7cf95e9e47da19a30687.camel@kernel.org> (Jeff Layton's message of "Mon, 12 Sep 2022 08:55:04 -0400") Message-ID: <875yhs20gh.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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-ext4@vger.kernel.org * Jeff Layton: > On Mon, 2022-09-12 at 14:13 +0200, Florian Weimer wrote: >> * Jeff Layton: >>=20 >> > To do this we'd need 2 64-bit fields in the on-disk and in-memory=20 >> > superblocks for ext4, xfs and btrfs. On the first mount after a crash, >> > the filesystem would need to bump s_version_max by the significant >> > increment (2^40 bits or whatever). On a "clean" mount, it wouldn't need >> > to do that. >> >=20 >> > Would there be a way to ensure that the new s_version_max value has ma= de >> > it to disk? Bumping it by a large value and hoping for the best might = be >> > ok for most cases, but there are always outliers, so it might be >> > worthwhile to make an i_version increment wait on that if necessary.=20 >>=20 >> How common are unclean shutdowns in practice? Do ex64/XFS/btrfs keep >> counters in the superblocks for journal replays that can be read easily? >>=20 >> Several useful i_version applications could be negatively impacted by >> frequent i_version invalidation. >>=20 > > One would hope "not very often", but Oopses _are_ something that happens > occasionally, even in very stable environments, and it would be best if > what we're building can cope with them. I was wondering if such unclean shutdown events are associated with SSD =E2=80=9Cunsafe shutdowns=E2=80=9D, as identified by the SMART counter. I = think those aren't necessarily restricted to oopses or various forms of powerless (maybe depending on file system/devicemapper configuration)? I admit it's possible that the file system is shut down cleanly before the kernel requests the power-off state from the firmware, but the underlying SSD is not. Thanks, Florian