From: NeilBrown Date: Mon, 28 Sep 2015 01:49:53 +0000 (+1000) Subject: super1: Do not create bad block log for clustered devices. X-Git-Tag: mdadm-3.4~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86a406c2262e1db3309623413992eecbb9ee1ce3;p=thirdparty%2Fmdadm.git super1: Do not create bad block log for clustered devices. We currently have no synchronization techniques for the bad block log, so disable it for the cluster. Reported-by: Goldwyn Rodrigues Signed-off-by: NeilBrown --- diff --git a/super1.c b/super1.c index 52952eb4..6f422919 100644 --- a/super1.c +++ b/super1.c @@ -1701,7 +1701,8 @@ static int write_init_super1(struct supertype *st) rv = -EINVAL; goto out; } - if (conf_get_create_info()->bblist == 0) { + /* Disable badblock log on clusters, or when explicitly requested */ + if (st->nodes > 0 || conf_get_create_info()->bblist == 0) { sb->bblog_size = 0; sb->bblog_offset = 0; }