diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -22,7 +22,6 @@ #include "mdmon.h" #include <sys/syscall.h> #include <sys/select.h> -#include <signal.h> static char *array_states[] = { "clear", "inactive", "suspended", "readonly", "read-auto", @@ -312,6 +311,9 @@ static int check_for_cleared_bb(struct active_array *a, struct mdinfo *mdi) struct md_bb *bb; int i; + if (!ss->get_bad_blocks) + return -1; + /* * Get a list of bad blocks for an array, then read list of * acknowledged bad blocks from kernel and compare it against metadata |