Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp204587pxb; Mon, 8 Feb 2021 20:29:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzevsxkfWjvUlQB1rl0kUrKa0Txgl/Wpvza46HYpYni2VnwSd79b1Y06LLEi9tz84wSaqW3 X-Received: by 2002:a05:6402:104b:: with SMTP id e11mr18007575edu.367.1612844976849; Mon, 08 Feb 2021 20:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612844976; cv=none; d=google.com; s=arc-20160816; b=RSmq2+xDcaY6AoDKxigOkSkGe2m1ig/qM4CkjInfE0PCa+sHFhnMMfZIvZzmDIFz9U Rqxqfwip8hdM+8lg1XhbPNJT/iDylrS1agNCRkkN6lzTNEjBjUhvqpn+wzjs2kg9UJIC WWOy8KmB591d1Yrm/6oQ/kj1w87XtfrRGkicM1g2J+aTu8nUvsSaGRHE7ly72EHnCE0i z2zBvMKrVrzpHKWAtJw8z6KY6k1h+9WIz3CCoi8GAuCm+8NOtEI+iXXt5OHNmF+KiR0R 7jPH9N6cqfB7kXPzIhl9S8fcrTo8ptEa4qjUD4WQpKzCfJb/N3k8tEGQ0zRI6h9yirUx stWg== 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=dPnr1BCBhoNlO6HyWo3u5SmMy6zKYzHfDPD7UIs8jEk=; b=TGq9aDvb1bkSqUJoyGBE0R5atlpF9WXTu7yxOlHugKXXXdth9mowZqqv4aN64h4yGd GCEsYiQSTnUpfGSHiIe9nFbNkZvuz1z4hsM593ZYanaWlfhF2YAYOZ6/uY4YI4Qe4ZQ/ tlM+ehhb1nP9s9Li/1A/HlPQLclBNUCzAX5qtoo2RgYAbGc+BXWeBmY0EiPkFvoQhKP6 FdReByb5OMHBZVgOR4aL9nNGg4Yjnefy6i8pkr/YDiJb//bA6wUKynxZ1xZEQmI5AdOH 0UyhNd4gh2JxW77m7nfM0PguIBrg+WFuD946kzmYdZKBBaQRCEUQeSSgmOlm224O2H7C OByQ== 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 s24si4817604ejf.601.2021.02.08.20.29.10; Mon, 08 Feb 2021 20:29:36 -0800 (PST) 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 S230244AbhBIE01 (ORCPT + 99 others); Mon, 8 Feb 2021 23:26:27 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:37014 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229843AbhBIEYs (ORCPT ); Mon, 8 Feb 2021 23:24:48 -0500 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 1194NTJL019830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 8 Feb 2021 23:23:29 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 5598C15C39D8; Mon, 8 Feb 2021 23:23:29 -0500 (EST) Date: Mon, 8 Feb 2021 23:23:29 -0500 From: "Theodore Ts'o" To: Andreas Dilger Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH] e2fsck: fix check of directories over 4GB Message-ID: References: <20210202082549.2936-1-adilger@whamcloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202082549.2936-1-adilger@whamcloud.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Feb 02, 2021 at 01:25:49AM -0700, Andreas Dilger wrote: > If directories grow larger than 4GB in size with the large_dir > feature, e2fsck will consider them to be corrupted and clear > the high bits of the size. > > Since it isn't very common to have directories this large, and > unlike sparse files that don't have ill effects if the size is > too large, an too-large directory will have all of the sparse > blocks filled in by e2fsck, so huge directories should still > be viewed with suspicion. Check for consistency between two of > the three among block count, inode size, and superblock large_dir > flag before deciding whether the directory inode should be fixed > or cleared, or if large_dir should be set in the superblock. > > Update the f_recnect_bad test case to match new output. > > Fixes: 49f28a06b738 ("e2fsck: allow to check >2GB sized directory") > Signed-off-by: Andreas Dilger > Lustre-bug-id: https://jira.whamcloud.com/browse/LU-14345 > Change-Id: I1b898cdab95d239ba1a7b37eb96255acadce7057 Thanks, applied. - Ted