ext4-crypt
ext4-crypt copied to clipboard
f2fs support
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.
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.
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