From 4025c288b2622a589b4403a3158452d4a7bfa7fa Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 8 Dec 2008 16:59:18 -0700 Subject: [PATCH] imsm: don't take chunk_size into account for raid1 Results in chopping off usable parts of the requested size. Signed-off-by: Dan Williams --- super-intel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/super-intel.c b/super-intel.c index 643420d5..841ba90e 100644 --- a/super-intel.c +++ b/super-intel.c @@ -2057,7 +2057,10 @@ static __u32 info_to_num_data_stripes(mdu_array_info_t *info) static __u32 info_to_blocks_per_member(mdu_array_info_t *info) { - return (info->size * 2) & ~(info_to_blocks_per_strip(info) - 1); + if (info->level == 1) + return info->size * 2; + else + return (info->size * 2) & ~(info_to_blocks_per_strip(info) - 1); } static void imsm_update_version_info(struct intel_super *super) -- 2.39.2