diff options
author | NeilBrown <neilb@suse.de> | 2014-08-07 04:23:45 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-08-07 04:23:45 +0200 |
commit | e2efe9e7bc73307f74a4c2e2197d6d4498dd46f0 (patch) | |
tree | 4d52e56150be5c309883760bdd84a17fa9a3c4ed /config.c | |
parent | md.4: replace "bad block log" with "bad block list" (diff) | |
download | mdadm-e2efe9e7bc73307f74a4c2e2197d6d4498dd46f0.tar.xz mdadm-e2efe9e7bc73307f74a4c2e2197d6d4498dd46f0.zip |
config: new option to suppress adding bad block lists.
CREATE bbl=no
in mdadm.conf will cause any devices added to an array
to not have a bad block list. By default they do for 1.x
metadata.
This is useful if you are suspicious of the bad-block-list
implementation.
Reported-by: Ethan Wilson <ethan.wilson@shiftmail.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -187,6 +187,7 @@ struct createinfo createinfo = { .autof = 2, /* by default, create devices with standard names */ .symlinks = 1, .names = 0, /* By default, stick with numbered md devices. */ + .bblist = 1, /* Use a bad block list by default */ #ifdef DEBIAN .gid = 6, /* disk */ .mode = 0660, @@ -306,6 +307,10 @@ static void createline(char *line) createinfo.names = 1; else if (strncasecmp(w, "names=no", 11) == 0) createinfo.names = 0; + else if (strncasecmp(w, "bbl=no", 11) == 0) + createinfo.bblist = 0; + else if (strncasecmp(w, "bbl=yes", 11) == 0) + createinfo.bblist = 1; else { pr_err("unrecognised word on CREATE line: %s\n", w); |