btrfs: restore mount option info messages during mount#2
Conversation
|
With the migration to fsconfig, mount option messages that were While btrfs_emit_options() can handle empty @old context for both mount This patch restores mount option logging by calling btrfs_emit_options() |
There was a problem hiding this comment.
Pull Request Overview
This PR adds logging functionality to the btrfs filesystem mount process by calling btrfs_emit_options during mount and removes duplicate log entries from the function.
- Adds a call to
btrfs_emit_optionsin thebtrfs_fill_superfunction to log mount options during filesystem mounting - Removes duplicate logging statements for NODATASUM, FREE_SPACE_TREE, and SPACE_CACHE options
- Adds forward declaration for the
btrfs_emit_optionsfunction
After the fsconfig migration, mount option info messages are no longer displayed during mount operations because btrfs_emit_options() is only called during remount, not during initial mount. Fix this by calling btrfs_emit_options() in btrfs_fill_super() after open_ctree() succeeds. Additionally, prevent log duplication by ensuring btrfs_check_options() handles validation with warn-level and err-level messages, while btrfs_emit_options() provides info-level messages. Fixes: eddb1a4 ("btrfs: add reconfigure callback for fs_context")
|
Fix as #4 |
No description provided.