summaryrefslogtreecommitdiff
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-04-10 12:54:13 +1000
committerNeilBrown <neilb@suse.de>2014-05-21 11:54:48 +1000
commit55e0007423ef93c331844a7b64dec326dc692e95 (patch)
tree365eccd5be0143c1c7814e45d4dbd37e5927eb29 /super-ddf.c
parent2a351cea60566ecd66f24c24f80e886053fc8c5b (diff)
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 <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c
index bd99f3a6..a5245d3b 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);