]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
config: new option to suppress adding bad block lists.
[thirdparty/mdadm.git] / super1.c
index 7fba9be0a252a868a579f732fc4bd8a39d503797..9834594c3e44d1553d564659bc81c5209cb807a6 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -1688,6 +1688,10 @@ static int write_init_super1(struct supertype *st)
                        rv = -EINVAL;
                        goto out;
                }
+               if (conf_get_create_info()->bblist == 0) {
+                       sb->bblog_size = 0;
+                       sb->bblog_offset = 0;
+               }
 
                sb->sb_csum = calc_sb_1_csum(sb);
                rv = store_super1(st, di->fd);