[f2fs-dev] [PATCH v2 0/3] Add support for Encryption and Casefolding in F2FS

2020-11-16 Thread Daniel Rosenberg via Linux-f2fs-devel
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. I've included one ext4 patch from the previous set since it isn't in the f2fs b

[f2fs-dev] [PATCH v2 2/3] fscrypt: Have filesystems handle their d_ops

2020-11-16 Thread Daniel Rosenberg via Linux-f2fs-devel
This shifts the responsibility of setting up dentry operations from fscrypt to the individual filesystems, allowing them to have their own operations while still setting fscrypt's d_revalidate as appropriate. Most filesystems can just use generic_set_encrypted_ci_d_ops, unless they have their own

[f2fs-dev] [PATCH v2 3/3] f2fs: Handle casefolding with Encryption

2020-11-16 Thread Daniel Rosenberg via Linux-f2fs-devel
Expand f2fs's casefolding support to include encrypted directories. To index casefolded+encrypted directories, we use the SipHash of the casefolded name, keyed by a key derived from the directory's fscrypt master key. This ensures that the dirhash doesn't leak information about the plaintext file

[f2fs-dev] [PATCH v2 1/3] libfs: Add generic function for setting dentry_ops

2020-11-16 Thread Daniel Rosenberg via Linux-f2fs-devel
This adds a function to set dentry operations at lookup time that will work for both encrypted filenames and casefolded filenames. A filesystem that supports both features simultaneously can use this function during lookup preparations to set up its dentry operations once fscrypt no longer does th

Re: [f2fs-dev] [PATCH 1/2] f2fs: add disable_auto_compr mount option

2020-11-16 Thread Eric Biggers
This patchset doesn't have a cover letter, and it doesn't apply to f2fs/dev, so I'm not sure what its purpose is. On Tue, Nov 17, 2020 at 01:02:22PM +0900, Daeho Jeong wrote: > From: Daeho Jeong > > We will add a new disable_auto_compr mount option to turn off the > automaic compression on the c

[f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-16 Thread Daeho Jeong
From: Daeho Jeong Added two ioctl to decompress/compress explicitly the compression enabled file in disable_auto_compr mount option. Using these two ioctls, the users can make a control of compression and decompression of their files. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 10 ++- f

[f2fs-dev] [PATCH 1/2] f2fs: add disable_auto_compr mount option

2020-11-16 Thread Daeho Jeong
From: Daeho Jeong We will add a new disable_auto_compr mount option to turn off the automaic compression on the compression enabled file, in order to give discretion of choosing the target file and the timing of compression to the user. Signed-off-by: Daeho Jeong --- Documentation/filesystems/

[f2fs-dev] [PATCH] fscrypt: simplify master key locking

2020-11-16 Thread Eric Biggers
From: Eric Biggers The stated reasons for separating fscrypt_master_key::mk_secret_sem from the standard semaphore contained in every 'struct key' no longer apply. First, due to commit a992b20cd4ee ("fscrypt: add fscrypt_prepare_new_inode() and fscrypt_set_context()"), fscrypt_get_encryption_inf

Re: [f2fs-dev] [PATCH 0/4] fs-verity cleanups

2020-11-16 Thread Eric Biggers
On Fri, Nov 13, 2020 at 01:19:14PM -0800, Eric Biggers wrote: > This patchset renames some names that have been causing confusion: > > - fsverity_signed_digest is renamed to fsverity_formatted_digest > > - "fs-verity file measurement" is renamed to "fs-verity file digest" > > In addition, this p

Re: [f2fs-dev] [PATCH v5 1/9] lib: zstd: Add zstd compatibility wrapper

2020-11-16 Thread Christoph Hellwig
On Tue, Nov 10, 2020 at 02:24:35PM -0500, Chris Mason wrote: > I think APIs change based on the needs of the project. We do this all the > time in the kernel, and we don???t think twice about updating users of the > API as needed. We update kernel APIs when: - we need additional functionality