4

In the man page of mkfs.f2fs, I see the option:

-O feature-list Specify a feature list in order f2fs filesystem will supports. e.g "encrypt" and so on

I'd like to know how can I get the full list of the optional features of f2fs and whether it is possible to modify existing file system and enable some features without data loss.

2
  • 1
    Possibly helpful: kernel.org/doc/Documentation/filesystems/f2fs.txt Commented Jun 25, 2019 at 13:16
  • 1
    Is there a tool like tune2fs that can modify the features of an existing fs (f2fs) without data loss? Commented Jul 1, 2019 at 8:46

2 Answers 2

3

Looking at https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/tree/mkfs/f2fs_format_main.c, the definition of parse_feature is taken from the file include/f2fs_fs.h. This function uses a table with 10 feature names (not all make sense for normal users!): https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/tree/include/f2fs_fs.h#n1361:

encrypt
extra_attr
project_quota
inode_checksum
flexible_inline_xattr
quota
inode_crtime
lost_found
verity
sb_checksum

1
  • casefold and compression have been added. Commented Jul 24, 2020 at 12:43
1

https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/tree/mkfs/f2fs_format_main.c?h=experimental#n70

Only encrypt at the moment it seems.

2
  • Why have you added the "experimental" part in your URL? Commented Sep 13, 2019 at 10:26
  • 1
    what about compress? Commented Jun 18, 2020 at 0:30

You must log in to answer this question.