]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Increase default size of bitmap for v1 superblocks.
authorNeil Brown <neilb@suse.de>
Thu, 19 Oct 2006 06:46:38 +0000 (16:46 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 19 Oct 2006 06:46:38 +0000 (16:46 +1000)
It can be increased further, but that takes a bit more code
so will wait for 2.6.

super1.c

index 9b643587296fe58471c784dca9322ba559532ab2..fe468e75bea85c43a0fe627fc3c9b048671a6deb 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -1136,7 +1136,7 @@ add_internal_bitmap1(struct supertype *st, void *sbv,
         */
 
        unsigned long long bits;
-       unsigned long long max_bits = (3*512 - sizeof(bitmap_super_t)) * 8;
+       unsigned long long max_bits = (6*512 - sizeof(bitmap_super_t)) * 8;
        unsigned long long min_chunk;
        struct mdp_superblock_1 *sb = sbv;
        bitmap_super_t *bms = (bitmap_super_t*)(((char*)sb) + 1024);