diff options
author | NeilBrown <neilb@suse.de> | 2013-03-05 00:36:21 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-03-05 00:36:21 +0100 |
commit | 748952f73e34f9963ea82347f4d71d67dcb1096a (patch) | |
tree | 2a8fba749f92eb275fee410f1b54ad5fabf7f0b7 /Build.c | |
parent | Enhance incremental removal. (diff) | |
download | mdadm-748952f73e34f9963ea82347f4d71d67dcb1096a.tar.xz mdadm-748952f73e34f9963ea82347f4d71d67dcb1096a.zip |
Create: default to bitmap=internal for large arrays.
Here, "large" means components are 100G or more. It is
usually beneficial to have write-intent bitmaps on such arrays.
They can be suppressed with --bitmap=none
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Build.c')
-rw-r--r-- | Build.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -154,6 +154,8 @@ int Build(char *mddev, struct mddev_dev *devlist, goto abort; } + if (s->bitmap_file && strcmp(s->bitmap_file, "none") == 0) + s->bitmap_file = NULL; if (s->bitmap_file && s->level <= 0) { pr_err("bitmaps not meaningful with level %s\n", map_num(pers, s->level)?:"given"); |