Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4954368pxv; Tue, 6 Jul 2021 13:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZvdjUM2d8aWRj6idR9exnChc/ruR/4fZu9fn9FZ1n6WkWbxMd0v8KFUGhA0QlRIUFhwmK X-Received: by 2002:a50:ff09:: with SMTP id a9mr25281800edu.368.1625603021411; Tue, 06 Jul 2021 13:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625603021; cv=none; d=google.com; s=arc-20160816; b=ugJViAaGsDWQufxRTpXzB3chb2zy9oqJHSOGkxTFXgrNAb1ElWpXiTMs+i+q6bPjj8 1rhNXuF2n2wxvtoN9yJpWZz+B/382efnitxoASQorbZkGz21vu3ENATVhaQNL195aExh 3bpegewViyYQ447ehqk4A6nnRb7NL62r2Y8SAuRvg92zCT95/ZDXNs6SEUW73SzHwXEO GDOiR1TNt95qgDiqxTE8titoNIhGIH4K1KMeBgo8nTYo6lF7AWOpbTdLDHLl/kWvXa3i aiVqJ3jLWrDve7/mgExI5mPUhH6T2bd/UXFiZiNe0NNxh0UNnvMrWQzYYgO+nI3ExoW7 CiZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mUNZI9jxscUabwVIb4eBm2cJEVAY7DkChFGVoBjIuyc=; b=FTyzO6uOAxvDQHgr5+njkzqAcwVuR65LqswMPPCzeVFAuWtPitdZvPfdBUC8xcO7IQ LfBaH1Uon3kgGFZLZknTkP7PP2kQS7Bs8lOyYaqfgWcLd1kZWxDCqcVLJ0nkU0z5reOl Lp1RBwP37FNaER4cG9KlsCSYFLUbyfvdWbEkrOsMntuW3FgHDTZ//NcV0LvFiRTKL6tZ 1rXsXjqEqIi5h7u/qSFzqxKgvFeINmvFK/tVf/0GJEAWnwrhib29zsUuGtvDSvmJwur7 Wimmc5cLvfm2QoGGb597o0/hn9DnsMw5Ms0+uLCaCmsjhEezcrlRmM7b4gD/jjW2F4ZL w2Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw21si5759806ejc.260.2021.07.06.13.23.17; Tue, 06 Jul 2021 13:23:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbhGFUZs (ORCPT + 99 others); Tue, 6 Jul 2021 16:25:48 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:55042 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229781AbhGFUZs (ORCPT ); Tue, 6 Jul 2021 16:25:48 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 166KN4xk005567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Jul 2021 16:23:05 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id A0AFE15C3CC6; Tue, 6 Jul 2021 16:23:04 -0400 (EDT) Date: Tue, 6 Jul 2021 16:23:04 -0400 From: "Theodore Ts'o" To: Lukas Czerner Cc: linux-ext4@vger.kernel.org, Dusty Mabe Subject: Re: [PATCH] e2fsck: fix last mount/write time when e2fsck is forced Message-ID: References: <20210614132725.10339-1-lczerner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614132725.10339-1-lczerner@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jun 14, 2021 at 03:27:25PM +0200, Lukas Czerner wrote: > With commit c52d930f e2fsck is no longer able to fix bad last > mount/write time by default because it is conditioned on s_checkinterval > not being zero, which it is by default. > > One place where it matters is when other e2fsprogs tools require to run > full file system check before a certain operation. If the last mount > time is for any reason in future, it will not allow it to run even if > full e2fsck is ran. > > Fix it by checking the last mount/write time when the e2fsck is forced, > except for the case where we know the system clock is broken. > > Fixes: c52d930f ("e2fsck: don't check for future superblock times if checkinterval == 0") > Reported-by: Dusty Mabe > Signed-off-by: Lukas Czerner Applied, thanks. - Ted