]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super-0.90: don't write bitmap larger than 60K
authorNeilBrown <neilb@suse.de>
Wed, 7 Jul 2010 11:09:23 +0000 (21:09 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 7 Jul 2010 11:31:33 +0000 (21:31 +1000)
commit50526e9090d0c118b065840719bc9601be8af8b8
treecfc8f8af64759242fd7acea1e461e88bc1811bd7
parent3d5279b0534a8d9e95681a0e495b000691a2582b
super-0.90: don't write bitmap larger than 60K

The 4K superblock can be as close as 64K from the end
of the device.  As the bitmap (with header) lives after
the superblock (with 0.90 metadata) there could be as
little as 60K of space.
So limit the bitmaps to 59.5K, and only write 60K including
the header.

The bug fixed here means that bitmaps cannot be created
on devices which are exact multiples of 64K in size

Signed-off-by: NeilBrown <neilb@suse.de>
super0.c