Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4865054pxu; Thu, 10 Dec 2020 07:19:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCPVKbqOf/dSyQ6k/r6VdnzJPENP47rTr4KAe7evFCmSv66r2Wos6knNv2HVYzQQOMEIIS X-Received: by 2002:a50:e083:: with SMTP id f3mr7285389edl.223.1607613545033; Thu, 10 Dec 2020 07:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607613545; cv=none; d=google.com; s=arc-20160816; b=bzVDHCER9+9BWSGOvurkCFOZEAkvgrnBevHT6mXGU1ClxzY48eYoOpaUUN7KbczgZt d+Is0LglP7vudBJwJmXx+0j7NrdTf7/4HRIZaqkeOimN1ODLyThqoEODZwcneLjx6qFd GJ0/dsOq+hcCbId2Xu+AYLVjmY8O6kydEjLnPUBKfq2R68MYfYacxPvLaf/hrPIWiHpv 4xAVgI8ew9Bp/mfJrbFh2lGOLu4J7ZxQFtwGQUo+evZGyuOUE+sN+EuCRN7R5zuyasiY 87zY+9K4dZQ41EsJAiPV7buQYxCz0BieOcBO9FdtSE5mvZHDfa6+wV2H+9/WE7t4yzT1 16xw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jHr8W42FdLM6sS5XRohc/C9PsipIX+fj7jf2qKcmh6w=; b=ig8u8oTfocoivZhuZt46a+atgZZyeg4CH3NJoXV7PMlni/EhrGyGEWzwchhVYZEve/ XPULjztFmuFcpLYoZFrJnBmRInLp6KJty+71opKexdrxhNRkeDWKH5rNVMkZDPmDbNCG eb+QQiW0XCrjrUXa48zRVZr6aRFkTsBzr6OQtUTbFPAzLBphpHQRCkqagk9lzqq4Flkk 0UwafLQa8FDmYcrNbTHbM2hsmse0pA6bL4cEdwD0zQgQXII2xih5LwezJMOfcLuJg6rs QBUodOwc0ALwZbg14PRbl9JTgeF7j8favpp5vpJGT1OWL8Z9d/LW/uMFI/LRhF3fzgyQ 12ew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si2849493eds.235.2020.12.10.07.18.42; Thu, 10 Dec 2020 07:19:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389066AbgLJPFX (ORCPT + 99 others); Thu, 10 Dec 2020 10:05:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388977AbgLJPFS (ORCPT ); Thu, 10 Dec 2020 10:05:18 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFFF1C0617A7 for ; Thu, 10 Dec 2020 07:04:05 -0800 (PST) Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:1626:c942:e0f1:c77c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 6FE601F458F9; Thu, 10 Dec 2020 15:04:03 +0000 (GMT) From: Arnaud Ferraris To: linux-ext4@vger.kernel.org Cc: drosen@google.com, krisman@collabora.com, ebiggers@kernel.org, tytso@mit.edu, Arnaud Ferraris Subject: [PATCH RESEND v2 05/12] e2fsck: add new problem for casefolded name check Date: Thu, 10 Dec 2020 16:03:46 +0100 Message-Id: <20201210150353.91843-6-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201210150353.91843-1-arnaud.ferraris@collabora.com> References: <20201210150353.91843-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org --- Changes in v2: - added in this version e2fsck/problem.c | 5 +++++ e2fsck/problem.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/e2fsck/problem.c b/e2fsck/problem.c index e79c853b..2b596303 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -1805,6 +1805,11 @@ static struct e2fsck_problem problem_table[] = { N_("Encrypted @E references @i %Di, which has a different encryption policy.\n"), PROMPT_CLEAR, 0, 0, 0, 0 }, + /* Casefolded directory entry has illegal characters in its name */ + { PR_2_BAD_CASEFOLDED_NAME, + N_("@E has illegal UTF-8 characters in its name.\n"), + PROMPT_FIX, 0, 0, 0, 0 }, + /* Pass 3 errors */ /* Pass 3: Checking directory connectivity */ diff --git a/e2fsck/problem.h b/e2fsck/problem.h index 4185e517..a8806fd4 100644 --- a/e2fsck/problem.h +++ b/e2fsck/problem.h @@ -1028,6 +1028,9 @@ struct problem_context { /* Encrypted directory contains file with different encryption policy */ #define PR_2_INCONSISTENT_ENCRYPTION_POLICY 0x020052 +/* Casefolded directory entry has illegal characters in its name */ +#define PR_2_BAD_CASEFOLDED_NAME 0x0200053 + /* * Pass 3 errors */ -- 2.29.2