Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4952863pxv; Tue, 6 Jul 2021 13:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8nn1BnxWa5nkWoPTnUeqPKv5RBW0w6aaLJNKfTf3wyOC330aijZFGRFy13Xw10KfF4Vrn X-Received: by 2002:a92:bd0f:: with SMTP id c15mr15794378ile.229.1625602861500; Tue, 06 Jul 2021 13:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625602861; cv=none; d=google.com; s=arc-20160816; b=xjXjsRHuP2OEPJuKycnRW4jsEFPBNC5/VXAnti5nlWpFNsa+raW3MUkiPg9DhM05rr GYrC95UfWVbhzgtOHO8x5t03KpudVzw7RDzeXUU3HQKchbrehKbxxQnKsQfAfu6FLuL0 1nZgZuSo3+Rmyh58rzUlcPpg9DlKk6s8otm+E0wDLPesBH+l5xGZxHBer103uHeFE3r1 9OkTTVeHAsv6oBFj2r6/I/AdOCkKgCTKeJeWLsB24NedcuZcBBdgfFQsijkl2XxVE5Uo Lx3g1mnTNYuXleNPAvCbZMzQNc2Yp7uHEN9vwaF8+6fAKrvdY2W3oPKfVovfIqT9AFW1 KfsQ== 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=sV5aPQq1jGyedrRCylSFqjsqXPVwwYIrAXr9aKNXEnM=; b=GFuiz99v5QMhU3in1JW7caopgvZyCYe6fXPvfYFkaDALV88zyiLQ19S2a6D2I/k+0M HGUrgDes2MUu4T5pKRXPDcL0L+HU4W+Df7tsZ2RhUk2baLREinurSLScXbmkt2dz3mVh uXgMKMQvE85NZREsIovJZay7xuVahPcHrC3Iu1a1bYjG6LOwcWCAZGdqEjnhWVS91VBc qtXOVmVdSlG6zgAWvudez+4nC2JW24kalXmsmQpAKYW1IPJAqBkb0Qxdv1Ua/XCMDb7F VhejSe8tSQNa6J75JuyLnDc9SeK6lCyov5mguyq5JSGtqoqCx5AaqtXoGqiJz/FBj8h8 zuRQ== 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 w17si16668474ilj.116.2021.07.06.13.20.49; Tue, 06 Jul 2021 13:21:01 -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 S229986AbhGFUWf (ORCPT + 99 others); Tue, 6 Jul 2021 16:22:35 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:54574 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229938AbhGFUWf (ORCPT ); Tue, 6 Jul 2021 16:22:35 -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 166KJpv9003988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Jul 2021 16:19:52 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id A4F3915C3CC6; Tue, 6 Jul 2021 16:19:51 -0400 (EDT) Date: Tue, 6 Jul 2021 16:19:51 -0400 From: "Theodore Ts'o" To: Andreas Dilger Cc: linux-ext4@vger.kernel.org, Artem Blagodarenko Subject: Re: [PATCH] e2fsck: fix ".." more gracefully if possible Message-ID: References: <20210531233123.16095-1-adilger@whamcloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210531233123.16095-1-adilger@whamcloud.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, May 31, 2021 at 05:31:23PM -0600, Andreas Dilger wrote: > If the "." entry is corrupted, it will be reset in check_dot(). > It is possible that the ".." entry can be recovered from the > directory block instead of also resetting it immediately. If > it appears that there is a valid ".." entry in the block, allow > that to be used, and let check_dotdot() verify the dirent itself. > > When resetting the "." and ".." entries, use EXT2_FT_DIR as the > file type instead of EXT2_FT_UNKNOWN for the very common case of > filesystems with the "filetype" feature, to avoid later problems > that can be easily avoided. This can't always be done, even if > filesystems without "filetype" are totally obsolete, because many > old test images do not have this feature enabled. > > Fixup affected tests using the new "repair-test" script that > updates the expect.[12] files from $test.[12].log for the given > tests and re-runs the test to ensure it now passes. > > Signed-off-by: Andreas dilger > Reviewed-by: Artem Blagodarenko > Lustre-bug-Id: https://jira.whamcloud.com/browse/LU-14710 > Change-Id: Ia5e579bcf31a9d9ee260d5640de6dbdb60514823 > Reviewed-on: https://review.whamcloud.com/43858 Applied, thanks. - Ted