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 <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
NeilBrown 2015-09-28 11:49:53 +10:00
parent 6d9c7c2551
commit 86a406c226
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}