Skip to content

Commit

Permalink
btrfs: modload to print RAID1 balancing status
Browse files Browse the repository at this point in the history
Modified the Btrfs loading message to include the RAID1 balancing status
if the experimental feature is enabled.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
asj authored and kdave committed Jan 2, 2025
1 parent 54c8339 commit 97d9e17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,17 @@ static int __init btrfs_print_mod_info(void)
", fsverity=no"
#endif
;

#ifdef CONFIG_BTRFS_EXPERIMENTAL
if (btrfs_get_raid1_balancing() == NULL)
pr_info("Btrfs loaded%s\n", options);
else
pr_info("Btrfs loaded%s, raid1_balancing=%s\n",
options, btrfs_get_raid1_balancing());
#else
pr_info("Btrfs loaded%s\n", options);
#endif

return 0;
}

Expand Down

0 comments on commit 97d9e17

Please sign in to comment.