summaryrefslogtreecommitdiffstats
path: root/Create.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:31:00 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:31:00 +1100
commit199171a297a87d7696b6b8c07ee520363f4603c1 (patch)
treec14892a4cca18dd1dd01539a3c39f91f28045228 /Create.c
parent90cf1dddb25f047494b943cf2dd67ebffd42ed05 (diff)
downloadmdadm-199171a297a87d7696b6b8c07ee520363f4603c1.tar.gz
mdadm-199171a297a87d7696b6b8c07ee520363f4603c1.tar.xz
mdadm-199171a297a87d7696b6b8c07ee520363f4603c1.zip
Improve allocation and use of space for bitmaps in version1 metadata
Depending on the size of the array we reserve space for up to 128K of bitmap, and we use it where possible. When hot-adding to a version 1.0 we can still only use the 3K at the end though - need a sysfs interface to improve that. If a small chunksize is requested on Create, we don't auto-enlarge the reserved space - this still needs to be fixed.
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index e0cc797..cd4356c 100644
--- a/Create.c
+++ b/Create.c
@@ -435,7 +435,8 @@ int Create(struct supertype *st, char *mddev, int mdfd,
fprintf(stderr, Name ": internal bitmaps not supported by this kernel.\n");
return 1;
}
- if (!st->ss->add_internal_bitmap(st, super, bitmap_chunk, delay, write_behind,
+ if (!st->ss->add_internal_bitmap(st, super, &bitmap_chunk,
+ delay, write_behind,
bitmapsize, 1, major)) {
fprintf(stderr, Name ": Given bitmap chunk size not supported.\n");
return 1;