RFC fs: provide per-filesystem options to disable fscrypt
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | fscrypt: introduce USE_FS_ENCRYPTIONfs/ fs/ fs/ +2 more | +16 | 0 replies | |
| 2/4 | fs: make fscrypt support an ext4 config optionDocumentation/ fs/ fs/ +6 more | +33 | 0 replies | |
| 3/4 | fs: make fscrypt support a f2fs config optionfs/ fs/ fs/ +4 more | +28 | 0 replies | |
| 4/4 | fs: make fscrypt support a UBIFS config optionfs/ fs/ fs/ +2 more | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/4] fs: provide per-filesystem options to disable fscrypt
While more filesystems are getting support for fscrypt, it is useful to be able to disable fscrypt for a selection of filesystems, while enabling it for others.
The new USE_FS_ENCRYPTION define gets picked up in include/linux/fscrypt.h. This allows filesystems to choose to use the empty function definitions, or the functional ones when fscrypt is to be used with the filesystem.
Using USE_FS_ENCRYPTION is a relatively clean approach, and requires minimal changes to the filesystems supporting fscrypt. This RFC is mostly for checking the acceptance of this solution, or if an other direction is preferred.
---
Niels de Vos (4):
fscrypt: introduce USE_FS_ENCRYPTION
fs: make fscrypt support an ext4 config option
fs: make fscrypt support a f2fs config option
fs: make fscrypt support a UBIFS config option
Documentation/filesystems/fscrypt.rst | 2 +- fs/crypto/Kconfig | 3 +++ fs/crypto/fscrypt_private.h | 2 ++ fs/ext4/Kconfig | 13 ++++++++++++- fs/ext4/Makefile | 2 +- fs/ext4/ext4.h | 12 ++++++++---- fs/ext4/inode.c | 6 +++--- fs/ext4/namei.c | 6 +++--- fs/ext4/super.c | 6 +++--- fs/ext4/sysfs.c | 8 ++++---- fs/f2fs/Kconfig | 15 +++++++++++++-- fs/f2fs/data.c | 2 +- fs/f2fs/dir.c | 6 +++--- fs/f2fs/f2fs.h | 8 ++++++-- fs/f2fs/super.c | 6 +++--- fs/f2fs/sysfs.c | 8 ++++---- fs/ubifs/Kconfig | 14 ++++++++++++-- fs/ubifs/Makefile | 2 +- fs/ubifs/sb.c | 4 ++-- fs/ubifs/ubifs.h | 7 +++++-- include/linux/fscrypt.h | 6 +++--- 21 files changed, 93 insertions(+), 45 deletions(-)
Signature · 1 line
2.37.3