Skip to content

e2fsprogs: improve case-insensitive fs

Arnaud Ferraris linux-ext4 4 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 12 repliesApplied
  2. v2 posting 2/212 patches 13 repliesApplied
  3. v2 posting 1/212 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v111 patches3 repliesSuperseded

Changes in v3 from the cover letter

- removed extra lines across the whole series
- renamed PR_2_BAD_CASEFOLDED_NAME to PR_2_BAD_ENCODED_NAME and fixed its value

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/12tune2fs: Allow enabling casefold feature after fs creationmisc/tune2fs.c+14 -11 reply
2/12tune2fs: Fix casefold+encrypt error messagemisc/tune2fs.c+1 -11 reply
3/12ext2fs: Add method to validate casefolded stringslib/ext2fs/ext2fs.h lib/ext2fs/ext2fsP.h lib/ext2fs/nls_utf8.c+32 -01 reply
4/12ext2fs: Implement faster CI comparison of stringslib/ext2fs/ext2fs.h lib/ext2fs/ext2fsP.h lib/ext2fs/nls_utf8.c+40 -01 reply
5/12e2fsck: Add new problem for encoded name checke2fsck/problem.c e2fsck/problem.h+8 -01 reply
6/12e2fsck: Fix entries with invalid encoded characterse2fsck/e2fsck.c e2fsck/e2fsck.h e2fsck/pass1.c +1 more+69 -51 reply
7/12e2fsck: Support casefold directories when rehashinge2fsck/rehash.c+69 -161 reply
8/12dict: Support comparison with contexte2fsck/pass1b.c e2fsck/pass2.c lib/support/dict.c +2 more+22 -101 reply
9/12e2fsck: Detect duplicated casefolded direntries for rehashe2fsck/pass2.c+21 -11 reply
10/12e2fsck: Add option to force encoded filename verificatione2fsck/e2fsck.h e2fsck/pass2.c e2fsck/unix.c+8 -21 reply
11/12e2fsck.8.in: Document check_encoding extended optione2fsck/e2fsck.8.in+4 -01 reply
12/12tests: f_bad_fname: Test fixes of invalid filenames and duplicatestests/f_bad_fname/expect.1 tests/f_bad_fname/expect.2 tests/f_bad_fname/image.gz +1 more+30 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/12] e2fsprogs: improve case-insensitive fs

Hello,

This patch series improves e2fsprogs for case-insensitive filesystems.

First, it allows tune2fs to enable the 'casefold' feature on existing filesystems.

Then, it improves e2fsck by allowing it to:
- fix entries containing invalid UTF-8 characters
- detect duplicated entries

By default, invalid filenames are only checked when strict mode is enabled. A new option is therefore added to allow the user to force this verification.

This series has been tested by running xfstests, and by manually corrupting the test filesystem using debugfs as well.

Best regards,
Arnaud

---
Changes in v3:
- removed extra lines across the whole series
- renamed PR_2_BAD_CASEFOLDED_NAME to PR_2_BAD_ENCODED_NAME and fixed its value

Changes in v2:
- added missing comment in e2fsck/pass1.c
- added a new problem code dedicated to bad encoded file names
- reworked a test in e2fsck/pass2.c

Arnaud Ferraris (1):
e2fsck: Add new problem for encoded name check

Gabriel Krisman Bertazi (11):
tune2fs: Allow enabling casefold feature after fs creation
tune2fs: Fix casefold+encrypt error message
ext2fs: Add method to validate casefolded strings
ext2fs: Implement faster CI comparison of strings
e2fsck: Fix entries with invalid encoded characters
e2fsck: Support casefold directories when rehashing
dict: Support comparison with context
e2fsck: Detect duplicated casefolded direntries for rehash
e2fsck: Add option to force encoded filename verification e2fsck.8.in: Document check_encoding extended option
tests: f_bad_fname: Test fixes of invalid filenames and duplicates

 e2fsck/e2fsck.8.in         |   4 ++
 e2fsck/e2fsck.c            |   4 ++
 e2fsck/e2fsck.h            |   2 +
 e2fsck/pass1.c             |  18 ++++++++
 e2fsck/pass1b.c            |   2 +-
 e2fsck/pass2.c             |  76 ++++++++++++++++++++++++++++++---
 e2fsck/problem.c           |   5 +++
 e2fsck/problem.h           |   3 ++
 e2fsck/rehash.c            |  85 ++++++++++++++++++++++++++++++-------
 e2fsck/unix.c              |   4 ++
 lib/ext2fs/ext2fs.h        |   5 +++
 lib/ext2fs/ext2fsP.h       |   5 +++
 lib/ext2fs/nls_utf8.c      |  62 +++++++++++++++++++++++++++
 lib/support/dict.c         |  22 +++++++---
 lib/support/dict.h         |   4 +-
 lib/support/mkquota.c      |   2 +-
 misc/tune2fs.c             |  17 +++++++-
 tests/f_bad_fname/expect.1 |  22 ++++++++++
 tests/f_bad_fname/expect.2 |   7 +++
 tests/f_bad_fname/image.gz | Bin 0 -> 802 bytes
 tests/f_bad_fname/name     |   1 +
 21 files changed, 316 insertions(+), 34 deletions(-)
 create mode 100644 tests/f_bad_fname/expect.1
 create mode 100644 tests/f_bad_fname/expect.2
 create mode 100644 tests/f_bad_fname/image.gz
 create mode 100644 tests/f_bad_fname/name
Signature · 1 line
2.29.2