RE: [f2fs-dev] [PATCH 2/3] f2fs crypto: check dir entry just for directory

From: Chao Yu
Date: Wed May 27 2015 - 03:28:44 EST


Hi all,

> -----Original Message-----
> From: Chao Yu [mailto:chao2.yu@xxxxxxxxxxx]
> Sent: Monday, May 25, 2015 6:08 PM
> To: Jaegeuk Kim; Changman Lee
> Cc: linux-kernel@xxxxxxxxxxxxxxx; linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx
> Subject: [f2fs-dev] [PATCH 2/3] f2fs crypto: check dir entry just for directory
>
> This patch fixes to add a judgement condition to verify type of the
> target inode before empty directory verification.
>
> So wrong verification could be avoided for non-directory inode.

Proposal for ext4 encryption indicated that encryption policy will only
be set to an directory in below link:

https://lwn.net/Articles/639427/

So the previous patch could not fix the issue exactly, I'd like to use
the below patch instead.