Skip to content

Commit 02eb5fe

Browse files
Hongbo LiJaegeuk Kim
authored andcommitted
f2fs: move the option parser into handle_mount_opt
In handle_mount_opt, we use fs_parameter to parse each option. However we're still using the old API to get the options string. Using fsparams parse_options allows us to remove many of the Opt_ enums, so remove them. The checkpoint disable cap (or percent) involves rather complex parsing; we retain the old match_table mechanism for this, which handles it well. There are some changes about parsing options: 1. For `active_logs`, `inline_xattr_size` and `fault_injection`, we use s32 type according the internal structure to record the option's value. Signed-off-by: Hongbo Li <[email protected]> [sandeen: forward port, minor fixes and updates] Signed-off-by: Eric Sandeen <[email protected]> [hongbo: minor cleanup] Signed-off-by: Hongbo Li <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent f2091cc commit 02eb5fe

File tree

1 file changed

+413
-655
lines changed

1 file changed

+413
-655
lines changed

0 commit comments

Comments
 (0)