From 26b05aeaede6fbdf92807324ab94f9c15c1cc2c5 Mon Sep 17 00:00:00 2001 From: Anna Czarnowska Date: Wed, 5 Jan 2011 13:42:59 +1100 Subject: [PATCH] Assemble: we need to read policy to know array domains Policy must be read on all disks identified as array members to get array's domains list. Currently it is only read on first array member in auto assembly mode. Signed-off-by: Anna Czarnowska Signed-off-by: NeilBrown --- Assemble.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assemble.c b/Assemble.c index 5725b23..7ef9dc3 100644 --- a/Assemble.c +++ b/Assemble.c @@ -546,8 +546,11 @@ int Assemble(struct supertype *st, char *mddev, } loop: /* Collect domain information from members only */ - if (tmpdev && tmpdev->used == 1) + if (tmpdev && tmpdev->used == 1) { + if (!pol) + pol = devnum_policy(stb.st_rdev); domain_merge(&domains, pol, tst?tst->ss->name:NULL); + } dev_policy_free(pol); pol = NULL; if (tst)