]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: do not use blocks_per_member in array size calculations
authorMariusz Dabrowski <mariusz.dabrowski@intel.com>
Thu, 5 Apr 2018 11:38:38 +0000 (13:38 +0200)
committerJes Sorensen <jsorensen@fb.com>
Thu, 12 Apr 2018 15:34:44 +0000 (11:34 -0400)
commit444909385fdaccf961308c4319d7029b82bf8bb1
treec752b1a98cf8e584fbb5c7138a46cca14891cd58
parent9529d3436771d9f38884861683dee3b40ab9d180
imsm: do not use blocks_per_member in array size calculations

mdadm assumes that blocks_per_member value is equal to num_data_stripes *
blocks_per_stripe but it is not true. For IMSM arrays created in OROM
NUM_BLOCKS_DIRTY_STRIPE_REGION sectors are added up to this value. Because
of this mdadm shows invalid size of arrays created in OROM and to fix this
we need to use array size calculation based on num data stripes and blocks
per stripe.

Signed-off-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c