Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f2fs support #4

Open
bircoph opened this issue Jan 25, 2016 · 2 comments
Open

f2fs support #4

bircoph opened this issue Jan 25, 2016 · 2 comments

Comments

@bircoph
Copy link

bircoph commented Jan 25, 2016

f2fs supports the same ioctl() for encryption as ext4, so please add support for this filesystem too. Actual code change is simple:

EXT4_KEY_DESC_PREFIX should be changed from "ext4:" to "f2fs:"

But you also need some user interface change to allow select filesystem.

@s777s
Copy link

s777s commented Aug 10, 2016

Actually, there is a lack of info about enabling f2fs encryption and I have the same request, if possible.
Everything that I was able to find is http://www.phoronix.com/scan.php?page=news_item&px=F2FS-Encryption-Linux-4.2

Based on the native encryption support added to EXT4 with the Linux 4.1 kernel, Linux 4.2 is bringing encryption support to the F2FS file-system.

F2FS has been working on native encryption support in tandem with the EXT4 work and now it's been called for merging today into Linux 4.2. Jaegeuk Kim sent in the F2FS feature update for Linux 4.2 and it features per-file encryption support along with new capabilities for FALLOC_FL_ZERO_RANGE (converting a range of file to zeroes), FALLOC_FL_COLLAPSE_RANGE (removes a byte range from a file), and RENAME_WHITEOUT.

The Flash-Friendly File-System for Linux 4.2 also has recovery for broken super-blocks, TRIM improvements, and various fixes.

And no info or article, how could I use it.

@bircoph
Copy link
Author

bircoph commented Aug 11, 2016

It should be quite simple to implement, this is e-mail reply from f2fs kernel maintainer on this issue:

Date: Sun, 24 Jan 2016 17:26:46 -0800

Hi,

Yup, you can use the same ioctl.
But, one thing you need to change should be:

EXT4_KEY_DESC_PREFIX "ext4:" --> "f2fs:"

Thanks,

2016-01-24 3:44 GMT-08:00 Andrew Savchenko [email protected]:

Hello,

thank you for adding encryption support for f2fs. Is there any
userspace tool (or any other way) to use it? As far as I undestand,
f2fs implements the same ioctl() as ext4, so maybe ext4-crypt [1]
tool can be used of f2fs as well?

[1] https://github.com/gdelugre/ext4-crypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants