Re: [f2fs-dev] [PATCH 2/2] f2fs: Add f2fs stats to sysfs

2019-10-24 Thread Hridya Valsaraju via Linux-f2fs-devel
On Thu, Oct 24, 2019 at 2:26 AM Chao Yu wrote: > > On 2019/10/24 5:48, Hridya Valsaraju wrote: > > Currently f2fs stats are only available from /d/f2fs/status. This patch > > adds some of the f2fs stats to sysfs so that they are accessible even > > when debugfs is not mounted. > > Why don't we

[f2fs-dev] [PATCH v2 0/3] fscrypt: support for IV_INO_LBLK_64 policies

2019-10-24 Thread Eric Biggers
Hello, In preparation for adding inline encryption support to fscrypt, this patchset adds a new fscrypt policy flag which modifies the encryption to be optimized for inline encryption hardware compliant with the UFS v2.1 standard or the upcoming version of the eMMC standard. This means using

[f2fs-dev] [PATCH v2 3/3] f2fs: add support for IV_INO_LBLK_64 encryption policies

2019-10-24 Thread Eric Biggers
From: Eric Biggers f2fs inode numbers are stable across filesystem resizing, and f2fs inode and file logical block numbers are always 32-bit. So f2fs can always support IV_INO_LBLK_64 encryption policies. Wire up the needed fscrypt_operations to declare support. Signed-off-by: Eric Biggers

[f2fs-dev] [PATCH v2 1/3] fscrypt: add support for IV_INO_LBLK_64 policies

2019-10-24 Thread Eric Biggers
From: Eric Biggers Inline encryption hardware compliant with the UFS v2.1 standard or with the upcoming version of the eMMC standard has the following properties: (1) Per I/O request, the encryption key is specified by a previously loaded keyslot. There might be only a small number of

[f2fs-dev] [PATCH] common/rc: skip encrypted direct I/O tests on f2fs

2019-10-24 Thread Eric Biggers
From: Eric Biggers Skip the O_DIRECT tests on f2fs when the test_dummy_encryption mount option is given, for the same reason as given for ext4 in commit 9b154b26e4a1 ("common/rc: ext4 doesn't support O_DIRECT with encryption"). Signed-off-by: Eric Biggers --- common/rc | 9 ++--- 1 file

Re: [f2fs-dev] [bug report] compiler warning: fs/f2fs/node.c: In function ‘__set_nat_cache_dirty’: ‘head’ may be used uninitialized

2019-10-24 Thread Ardelean, Alexandru
On Thu, 2019-10-24 at 17:12 +0800, Chao Yu wrote: > [External] > > On 2019/10/23 22:02, Ardelean, Alexandru wrote: > > Seems to have been introduced via: > > > > > > > > commit 780de47cf6cb5f524cd98ec8ffbffc3da5696e17 > > Author:

Re: [f2fs-dev] [PATCH 1/3] fscrypt: add support for inline-encryption-optimized policies

2019-10-24 Thread Paul Crowley via Linux-f2fs-devel
On Thu, 24 Oct 2019 at 00:04, Christoph Hellwig wrote: > I think not making it crazy verbose is a helpful, but at the same time > it should be somewhat descriptive. What would your suggested name be? ___ Linux-f2fs-devel mailing list

Re: [f2fs-dev] [PATCH 2/2] f2fs: Add f2fs stats to sysfs

2019-10-24 Thread Chao Yu
On 2019/10/24 5:48, Hridya Valsaraju wrote: > Currently f2fs stats are only available from /d/f2fs/status. This patch > adds some of the f2fs stats to sysfs so that they are accessible even > when debugfs is not mounted. Why don't we mount debugfs first? Thanks,

Re: [f2fs-dev] [PATCH 1/2] f2fs: delete duplicate information on sysfs nodes

2019-10-24 Thread Chao Yu
On 2019/10/24 5:48, Hridya Valsaraju wrote: > This patch merges the sysfs node documentation present in > Documentation/filesystems/f2fs.txt and > Documentation/ABI/testing/sysfs-fs-f2fs > and deletes the duplicate information from > Documentation/filesystems/f2fs.txt. This is to prevent having to

Re: [f2fs-dev] [bug report] compiler warning: fs/f2fs/node.c: In function ‘__set_nat_cache_dirty’: ‘head’ may be used uninitialized

2019-10-24 Thread Chao Yu
On 2019/10/23 22:02, Ardelean, Alexandru wrote: > Seems to have been introduced via: > > > > commit 780de47cf6cb5f524cd98ec8ffbffc3da5696e17 > Author: Chao Yu > Date: Tue Mar 20 23:08:30 2018 +0800 > > f2fs: don't track new

Re: [f2fs-dev] [PATCH 1/2] f2fs: support aligned pinned file

2019-10-24 Thread Chao Yu
Hi Jaegeuk, On 2019/10/23 1:16, Jaegeuk Kim wrote: > This patch supports 2MB-aligned pinned file, which can guarantee no GC at all > by allocating fully valid 2MB segment. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 4 +++- > fs/f2fs/file.c | 39

Re: [f2fs-dev] [PATCH 1/3] fscrypt: add support for inline-encryption-optimized policies

2019-10-24 Thread Christoph Hellwig
On Wed, Oct 23, 2019 at 07:44:59PM -0700, Eric Biggers wrote: > Would you be happy with something that more directly describes the change the > flag makes Yes. > , like FSCRYPT_POLICY_FLAG_CONTENTS_IV_INO_LBLK_64? I.e., the IVs for > contents encryption are 64-bit and contain the inode and