Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1525005pxu; Fri, 27 Nov 2020 09:06:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0Zg82d4MwvAjO6iXKRtEjo4y13vyOxKdH+TjgU9BJ6+wYnyTAQcKErRW6tueRFgyv3F4T X-Received: by 2002:aa7:d3d6:: with SMTP id o22mr8944488edr.243.1606496776054; Fri, 27 Nov 2020 09:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606496776; cv=none; d=google.com; s=arc-20160816; b=KWrfGMWwMDYNBMSqZLduBZGtPcPcL/lsBsgPda9GxUUpPL5CnW6rPyLPzO2ZAkwnI2 22hcgQFR0s6Wn4pUIanzJhneB53Z2PRhXB0QSLtAiKexArwo/6JNdg3pF5zqf4qgsni0 BWhCI8J636/G+ex6nFVCmCMeTc7fTO7zMcoPKiY/M4Gr7dP2ED5AE0VaVEnKt57geAP7 YQjvFxNCJ5akRMz3IntERN05gfpMy2f37Wl/Vmx/XJQfGYLjCUmtTTc9TZNJmKUq2rU2 9rrt+jkhQBrPZFVOCTUjLn1NOLz5MckitlTjLepdQGqsjz6YRDDzMPiQoem0rkJWJVC1 07oQ== 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=aArp2rOWYcu3wvhv9wTXz+T2Vu/7Ov2Rcys5Zur8X7E=; b=njlR/EltbTSV+W/YeXYuWhTp/vXfRgyWF04VNyiQF+PofVyb45Y1Nr1Uowcn9clZB8 j3dOQbrMWX7TKhjF2pH1/mgSkIyJvEHWC+DSzjIvgQ/diEUADUZAawMMRtPsFZoLPIlX /IlR2G1rnwffGY5ZU0RCTuLCYKFttQFA6EGaSs6etul9FjXlgdLkEkEA/ehZlC/l/13p tPmLWJcVxg8G2eXx56/+cb04AVwcys/EgHg+N8mhrjbbdO5YQD/SINuvrDE9hvHNN/bc NCtKGqwVyjJjpuEuefMIujc5fK9kfnesN3FCmxeItvhUVfk2BRENfESVW0Qy/IeaSFFJ bycQ== 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 r13si230187eda.305.2020.11.27.09.05.51; Fri, 27 Nov 2020 09:06:16 -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 S1732094AbgK0RBj (ORCPT + 99 others); Fri, 27 Nov 2020 12:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731882AbgK0RBj (ORCPT ); Fri, 27 Nov 2020 12:01:39 -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 14193C0613D1 for ; Fri, 27 Nov 2020 09:01:39 -0800 (PST) Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:5a64:74b8:f3be:d972]) (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 6D4C71F46500; Fri, 27 Nov 2020 17:01:37 +0000 (GMT) From: Arnaud Ferraris To: linux-ext4@vger.kernel.org Cc: Daniel Rosenberg , Arnaud Ferraris Subject: [PATCH v2 05/12] e2fsck: add new problem for casefolded name check Date: Fri, 27 Nov 2020 18:01:09 +0100 Message-Id: <20201127170116.197901-6-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201127170116.197901-1-arnaud.ferraris@collabora.com> References: <20201127170116.197901-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.28.0