dump/fsck: convert encrypted file name
authorSheng Yong <shengyong1@huawei.com>
Mon, 24 Oct 2016 02:16:03 +0000 (10:16 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 31 Oct 2016 17:59:24 +0000 (10:59 -0700)
commitc4c65265da347bf98af6f080abf6d7081df09ea1
tree6b2613c48281f4efd4cf9a8080774eef5efdddd7
parentb0a2386089fd6efade6b89094325ed8a9f8c6fff
dump/fsck: convert encrypted file name

If fscrypt is enabled, we need to convert the encrypted file name before
printing it. So let's export convert_encrypted_name for other functions,
and make it returns the length of converted string.
This patch also changes the parameter of file_is_encrypt to f2fs_inode.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/dump.c
fsck/fsck.c
fsck/fsck.h
fsck/mount.c
include/f2fs_fs.h