summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorAnna Czarnowska <anna.czarnowska@intel.com>2011-01-05 13:42:59 +1100
committerNeilBrown <neilb@suse.de>2011-01-05 13:42:59 +1100
commit26b05aeaede6fbdf92807324ab94f9c15c1cc2c5 (patch)
tree3a13398bc5e2b9cccd671927fea257b82ec6ca8d /Assemble.c
parentfee6a49ee80d1c93f7345eb3420abd229438794f (diff)
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 <anna.czarnowska@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 5725b232..7ef9dc3e 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)