Skip to content

Add support for Encryption and Casefolding in F2FS

Daniel Rosenberg linux-ext4 linux-f2fs-devel linux-fscrypt linux-fsdevel linux-mtd lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 9 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v23 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches8 repliesSuperseded

Changes in v4 from the cover letter

Added reviewed bys and acks from Eric
Removed unneeded variable
ifdef consistency

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libfs: Add generic function for setting dentry_opsfs/libfs.c include/linux/fs.h+71 -01 reply
2/3fscrypt: Have filesystems handle their d_opsfs/crypto/fname.c fs/crypto/fscrypt_private.h fs/crypto/hooks.c +10 more+8 -358 replies
3/3f2fs: Handle casefolding with Encryptionfs/f2fs/dir.c fs/f2fs/f2fs.h fs/f2fs/hash.c +3 more+106 -330 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric BiggersGabriel Krisman Bertazi
1/3R-b R-b
2/3A-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add support for Encryption and Casefolding in F2FS

These patches are on top of the torvalds tree.

F2FS currently supports casefolding and encryption, but not at the same time. These patches aim to rectify that. In a later follow up, this will be added for Ext4 as well.

The f2fs-tools changes have already been applied.

Since both fscrypt and casefolding require their own dentry operations, I've moved the responsibility of setting the dentry operations from fscrypt to the filesystems and provided helper functions that should work for most cases.

These are a follow-up to the previously sent patch set "[PATCH v12 0/4] Prepare for upcoming Casefolding/Encryption patches"

v2:
Simplified generic dentry_op function
Passed through errors in f2fs_match_ci_name

v3:
Split some long lines
Cleaned up some code
Made some comments clearer
Fixed bug in v2 error passing

v4:
Added reviewed bys and acks from Eric
Removed unneeded variable
ifdef consistency

Daniel Rosenberg (3):
libfs: Add generic function for setting dentry_ops
fscrypt: Have filesystems handle their d_ops
f2fs: Handle casefolding with Encryption

 fs/crypto/fname.c           |   4 --
 fs/crypto/fscrypt_private.h |   1 -
 fs/crypto/hooks.c           |   1 -
 fs/ext4/dir.c               |   7 ---
 fs/ext4/ext4.h              |   4 --
 fs/ext4/namei.c             |   1 +
 fs/ext4/super.c             |   5 --
 fs/f2fs/dir.c               | 105 ++++++++++++++++++++++++++----------
 fs/f2fs/f2fs.h              |  11 ++--
 fs/f2fs/hash.c              |  11 +++-
 fs/f2fs/inline.c            |   4 ++
 fs/f2fs/namei.c             |   1 +
 fs/f2fs/recovery.c          |  12 ++++-
 fs/f2fs/super.c             |   7 ---
 fs/libfs.c                  |  70 ++++++++++++++++++++++++
 fs/ubifs/dir.c              |   1 +
 include/linux/fs.h          |   1 +
 include/linux/fscrypt.h     |   7 ++-
 18 files changed, 185 insertions(+), 68 deletions(-)

base-commit: 0fa8ee0d9ab95c9350b8b84574824d9a384a9f7d

Signature · 1 line
2.29.2.454.gaff20da3a2-goog