Whamcloud - gitweb
e2fsck: add new problem for encoded name check
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Thu, 17 Dec 2020 17:35:37 +0000 (18:35 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Jan 2021 03:09:52 +0000 (22:09 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/problem.c
e2fsck/problem.h

index e79c853..9952234 100644 (file)
@@ -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_ENCODED_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 */
index 4185e51..e2fbb59 100644 (file)
@@ -1028,6 +1028,9 @@ struct problem_context {
 /* Encrypted directory contains file with different encryption policy */
 #define PR_2_INCONSISTENT_ENCRYPTION_POLICY    0x020052
 
+/* Encoded directory entry has illegal characters in its name */
+#define PR_2_BAD_ENCODED_NAME          0x020053
+
 /*
  * Pass 3 errors
  */