summaryrefslogtreecommitdiffstats
path: root/mdadm.8
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.8
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.8')
-rw-r--r--mdadm.85
1 files changed, 3 insertions, 2 deletions
diff --git a/mdadm.8 b/mdadm.8
index 4ec2f76..57918bf 100644
--- a/mdadm.8
+++ b/mdadm.8
@@ -447,11 +447,12 @@ slash ('/') if it is a real file (not 'internal' or 'none').
Note: external bitmaps are only known to work on ext2 and ext3.
Storing bitmap files on other filesystems may result in serious problems.
-
.TP
.BR --bitmap-chunk=
Set the chunksize of the bitmap. Each bit corresponds to that many
-Kilobytes of storage. Default is 4 when using a file based bitmap.
+Kilobytes of storage.
+When using a file based bitmap, the default is to use the smallest
+size that is atleast 4 and requires no more than 2^21 chunks.
When using an
.B internal
bitmap, the chunksize is automatically determined to make best use of