Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5657046imw; Wed, 20 Jul 2022 09:48:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uXMbsIcrAf1VDPVtSyRXrDC2/vjTK/UeALJiQbrejgYAKzJ5Yb0hGorTdwEWxxLAqz37kw X-Received: by 2002:a05:6402:3685:b0:43a:7c29:4284 with SMTP id ej5-20020a056402368500b0043a7c294284mr51901008edb.147.1658335681766; Wed, 20 Jul 2022 09:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658335681; cv=none; d=google.com; s=arc-20160816; b=PlcUzAFamTOM61GfpTKaAqAd2XAQpm9lL5RMDrg6uPbNKJ4Tf3cNnvP5VSPDAcWpqz Av81xzjKqELAj89yOW5krLHD+chOkGYc2XR4KS/XevLdHU8qR243xTx4sAmrrQSsuZHA aF0xjvhrcmguV9ZaQJ/sMa4eDetQIgd11uY3sp14TCUGR0BqpsBw4s5tZTY9ylQxT4VE o3ZoSh01jMQsckphULikFw7IuAjKsHdINDKisxkY4jpN+H/L3ZeOxoL9ubrGY4075Nd0 dcSt1r2heox5p52VzB0vpNV5D6cifXZ8ZJZh8z7DGQ7WagN96MiWSq2Q3ZH4WogeBobf FJyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=+VsxjQnG1c0rdQctalnfp2TNMhAsXMDXCRGbDahoE/U=; b=XrwLcQRmqUljMsqXGP9JV8HFxr2tIAtwaChacM2/BFZ3CAonC/zcCFCMzeIvY7TQGc zy9Kjlyh7zHZ+cM1uZtEVFD8nw/kAohL4EGaFtOdWQ5mNS0w/3m/koVm2yKbQrbl5UTr cqDV14CBfx+t58xKz+ZSLNlrrbIxcMKKTrZYVsMwVjzWh+QM/buHE+UdOODgqobQI0ZY cQejgHlgdIeHCan4HwLddkBylQI+KMBSH3C1CwwcQMdf8f7a9LPJb071MYEpiZ0CPPyN CwD0HHeEyyZZYrZz63kLQVRNUaP1LDdZxAEJgBkIJnzhIhNQPVPymO3zzRfcqfDKk72e L3CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uOnLo8FX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr15-20020a170906d54f00b006fe8b1baec0si14826060ejc.709.2022.07.20.09.47.35; Wed, 20 Jul 2022 09:48:01 -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=@kernel.org header.s=k20201202 header.b=uOnLo8FX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbiGTQqG (ORCPT + 99 others); Wed, 20 Jul 2022 12:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233067AbiGTQqF (ORCPT ); Wed, 20 Jul 2022 12:46:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A28343E79; Wed, 20 Jul 2022 09:46:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9BD361DB5; Wed, 20 Jul 2022 16:46:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7303AC3411E; Wed, 20 Jul 2022 16:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658335564; bh=bO/72wAs9HIZh7WXwkr34dOo62ZEdL5rFbqhoO2fP7c=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=uOnLo8FXZZtBjV8LmyAn8IA7rXsobB34IdKFGAni47kX2wGF7tdkC8gsushaGGBuK 2sSJlHoxQQjKB3SrnoaOnRCVMmXSXxktu8FIhrh1Aj+OnZBg9D4M2QN7nTvWfQ/ikZ xhX4Lvpek5FGEkFIhbLTcwTN3+jP8MU3tNh7GUbRb3UeXfB5vSwC2SE7uzvTQjTFUO 2L0Z2TEwRY2u6cObazkl9/JGUDd0YIDK/J8OFF+4qj3lk9PDEGSNDCm+vcvkOitBYW lshGAoI+lCizz0KLw7++Kk0o72pauors5p8ShtXERAmtDiDBeLsF3tLnnEFTqbWmIX nSKW5zvyXnHQA== Message-ID: Subject: Re: should we make "-o iversion" the default on ext4 ? From: Jeff Layton To: Benjamin Coddington Cc: Lukas Czerner , tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel Date: Wed, 20 Jul 2022 12:46:01 -0400 In-Reply-To: <7F6417C7-1261-4C98-96B1-CB15744C04C1@redhat.com> References: <69ac1d3ef0f63b309204a570ef4922d2684ed7f9.camel@kernel.org> <20220720141546.46l2d7bxwukjhtl7@fedora> <7F6417C7-1261-4C98-96B1-CB15744C04C1@redhat.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, 2022-07-20 at 12:29 -0400, Benjamin Coddington wrote: > On 20 Jul 2022, at 12:15, Jeff Layton wrote: >=20 > > On Wed, 2022-07-20 at 11:56 -0400, Benjamin Coddington wrote: > > > On 20 Jul 2022, at 10:38, Jeff Layton wrote: > > > > On Wed, 2022-07-20 at 16:15 +0200, Lukas Czerner wrote: > > > > >=20 > > > > > Is there a different way I am not seeing? > > > > >=20 > > > >=20 > > > > Right, implementing this is the difficult bit actually since this u= ses a > > > > MS_* flag.=A0If we do make this the default, we'd definitely want t= o > > > > continue allowing "-o noiversion" to disable it. > > > >=20 > > > > Could we just reverse the default in libmount? It might cause this = to > > > > suddenly be enabled in some deployments, but in most cases, people > > > > wouldn't even notice and they could still specify -o noiversion to = turn > > > > it off. > > > >=20 > > > > Another idea would be to introduce new mount options for this, but > > > > that's kind of nasty from a UI standpoint. > > >=20 > > > Is it safe to set SB_I_VERSION at export time? If so, export_operati= ons > > > could grow an ->enable_iversion(). > > >=20 > >=20 > > That sounds like it might be problematic. > >=20 > > Consider the case where a NFSv4 client has cached file data and the > > change attribute for the file. Server then reboots, but before the > > export happens a local user makes a change to the file and it doesn't > > update the i_version. >=20 > Nfsd currently uses both ctime and i_version if its available, I'd expect > that eliminates this case. >=20 Good point, that probably would. Still, I'd rather we just enable this wholesale if we can get away with it. There's still some interest in exposing i_version to userland via statx or the like, so I'd rather not assume that only nfsd will care about it. --=20 Jeff Layton