From 55e0007423ef93c331844a7b64dec326dc692e95 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 10 Apr 2014 12:54:13 +1000 Subject: [PATCH] DDF: use array_size from metadata. If some other controller sets a number smaller than a calculation would give us, we really should honour it. Signed-off-by: NeilBrown --- super-ddf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super-ddf.c b/super-ddf.c index bd99f3a..a5245d3 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2062,7 +2062,7 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info, cha info->array.ctime = DECADE + __be32_to_cpu(*cptr); info->array.utime = DECADE + be32_to_cpu(vc->conf.timestamp); info->array.chunk_size = 512 << vc->conf.chunk_shift; - info->custom_array_size = 0; + info->custom_array_size = be64_to_cpu(vc->conf.array_blocks); conf = &vc->conf; n_prim = be16_to_cpu(conf->prim_elmnt_count);