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.

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250

2 Answers2

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

Eliah Kagan
  • 4,065
  • 2
  • 24
  • 38
Sven
  • 275
  • 2
  • 5
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.

Sander
  • 11
  • 1