summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-15 04:21:33 +0000
committerNeil Brown <neilb@suse.de>2006-05-15 04:21:33 +0000
commit1bfdbe01ff300ebbf92d68c15722d2ba861aac3b (patch)
treecc0f64dabdaddf62383a377f317ad0e2b94dc9ce /mdadm.c
parent8686f3ed069671e5cbf8660cfd73c92b066563d0 (diff)
downloadmdadm-1bfdbe01ff300ebbf92d68c15722d2ba861aac3b.tar.gz
mdadm-1bfdbe01ff300ebbf92d68c15722d2ba861aac3b.tar.xz
mdadm-1bfdbe01ff300ebbf92d68c15722d2ba861aac3b.zip
Limit size of bitmap to 2million chunks.
When creating a file bitmap, choose a default size that results in fewer than 2^21 chunks. Without this kmalloc failure in the kernel becomes likely. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index f310474..7f10948 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1020,7 +1020,6 @@ int main(int argc, char *argv[])
}
break;
case BUILD:
- if (bitmap_chunk == UnSet) bitmap_chunk = DEFAULT_BITMAP_CHUNK;
if (delay == 0) delay = DEFAULT_BITMAP_DELAY;
if (write_behind && !bitmap_file) {
fprintf(stderr, Name ": write-behind mode requires a bitmap.\n");