diff options
author | Neil Brown <neilb@suse.de> | 2006-05-15 04:21:33 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-15 04:21:33 +0000 |
commit | 1bfdbe01ff300ebbf92d68c15722d2ba861aac3b (patch) | |
tree | cc0f64dabdaddf62383a377f317ad0e2b94dc9ce /Create.c | |
parent | 8686f3ed069671e5cbf8660cfd73c92b066563d0 (diff) | |
download | mdadm-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 'Create.c')
-rw-r--r-- | Create.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -432,9 +432,6 @@ int Create(struct supertype *st, char *mddev, int mdfd, if (bitmap_file) { int uuid[4]; - if (bitmap_chunk == UnSet) - bitmap_chunk = DEFAULT_BITMAP_CHUNK; - st->ss->uuid_from_super(uuid, super); if (CreateBitmap(bitmap_file, force, (char*)uuid, bitmap_chunk, delay, write_behind, |