@@ -50,19 +50,17 @@ void bch2_io_failures_to_text(struct printbuf *out,
50
50
struct bch_io_failures * failed )
51
51
{
52
52
static const char * const error_types [] = {
53
- "io" , "checksum" , "ec reconstruct" , NULL
53
+ "btree validate" , " io" , "checksum" , "ec reconstruct" , NULL
54
54
};
55
55
56
56
for (struct bch_dev_io_failures * f = failed -> devs ;
57
57
f < failed -> devs + failed -> nr ;
58
58
f ++ ) {
59
59
unsigned errflags =
60
- ((!!f -> failed_io ) << 0 ) |
61
- ((!!f -> failed_csum_nr ) << 1 ) |
62
- ((!!f -> failed_ec ) << 2 );
63
-
64
- if (!errflags )
65
- continue ;
60
+ ((!!f -> failed_btree_validate ) << 0 ) |
61
+ ((!!f -> failed_io ) << 1 ) |
62
+ ((!!f -> failed_csum_nr ) << 2 ) |
63
+ ((!!f -> failed_ec ) << 3 );
66
64
67
65
bch2_printbuf_make_room (out , 1024 );
68
66
out -> atomic ++ ;
@@ -77,7 +75,9 @@ void bch2_io_failures_to_text(struct printbuf *out,
77
75
78
76
prt_char (out , ' ' );
79
77
80
- if (is_power_of_2 (errflags )) {
78
+ if (!errflags ) {
79
+ prt_str (out , "no error - confused" );
80
+ } else if (is_power_of_2 (errflags )) {
81
81
prt_bitflags (out , error_types , errflags );
82
82
prt_str (out , " error" );
83
83
} else {
0 commit comments