@@ -1067,12 +1067,13 @@ noinline_for_stack
1067
1067
static void print_mount_opts (struct bch_fs * c )
1068
1068
{
1069
1069
enum bch_opt_id i ;
1070
- struct printbuf p = PRINTBUF ;
1071
- bool first = true ;
1070
+ CLASS ( printbuf , p )() ;
1071
+ bch2_log_msg_start ( c , & p ) ;
1072
1072
1073
1073
prt_str (& p , "starting version " );
1074
1074
bch2_version_to_text (& p , c -> sb .version );
1075
1075
1076
+ bool first = true;
1076
1077
for (i = 0 ; i < bch2_opts_nr ; i ++ ) {
1077
1078
const struct bch_option * opt = & bch2_opt_table [i ];
1078
1079
u64 v = bch2_opt_get_by_id (& c -> opts , i );
@@ -1089,17 +1090,24 @@ static void print_mount_opts(struct bch_fs *c)
1089
1090
}
1090
1091
1091
1092
if (c -> sb .version_incompat_allowed != c -> sb .version ) {
1092
- prt_printf (& p , "\n allowing incompatible features above " );
1093
+ prt_printf (& p , "\nallowing incompatible features above " );
1093
1094
bch2_version_to_text (& p , c -> sb .version_incompat_allowed );
1094
1095
}
1095
1096
1096
1097
if (c -> opts .verbose ) {
1097
- prt_printf (& p , "\n features : " );
1098
+ prt_printf (& p , "\nfeatures : " );
1098
1099
prt_bitflags (& p , bch2_sb_features , c -> sb .features );
1099
1100
}
1100
1101
1101
- bch_info (c , "%s" , p .buf );
1102
- printbuf_exit (& p );
1102
+ if (c -> sb .multi_device ) {
1103
+ prt_printf (& p , "\nwith devices" );
1104
+ for_each_online_member (c , ca , BCH_DEV_READ_REF_bch2_online_devs ) {
1105
+ prt_char (& p , ' ' );
1106
+ prt_str (& p , ca -> name );
1107
+ }
1108
+ }
1109
+
1110
+ bch2_print_str (c , KERN_INFO , p .buf );
1103
1111
}
1104
1112
1105
1113
static bool bch2_fs_may_start (struct bch_fs * c )
0 commit comments