aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Ferraris <arnaud.ferraris@collabora.com>2020-12-17 18:35:37 +0100
committerTheodore Ts'o <tytso@mit.edu>2021-01-27 22:09:52 -0500
commitd380e9d6f07c2b499e1cf3a1361ed445b6e55c60 (patch)
tree460a747d9ac4d7a080a7c809a019d211389551b3
parenta3def1e3cee0ccb14db2daff84ac3730da9931ec (diff)
downloade2fsprogs-d380e9d6f07c2b499e1cf3a1361ed445b6e55c60.tar.gz
e2fsck: add new problem for encoded name check
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--e2fsck/problem.c5
-rw-r--r--e2fsck/problem.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/e2fsck/problem.c b/e2fsck/problem.c
index e79c853b2..995223429 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_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 */
diff --git a/e2fsck/problem.h b/e2fsck/problem.h
index 4185e5175..e2fbb597a 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
+/* Encoded directory entry has illegal characters in its name */
+#define PR_2_BAD_ENCODED_NAME 0x020053
+
/*
* Pass 3 errors
*/