summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorCzarnowska, Anna <anna.czarnowska@intel.com>2011-02-01 10:40:56 +1100
committerNeilBrown <neilb@suse.de>2011-02-01 10:40:56 +1100
commit3c7b4a25950aac37edfef59e7f9f0b57eab18d14 (patch)
treed75baaea9df8c4c14a99af9138e1f567417129f1 /Assemble.c
parentbfd76b93090a80a746869e8c3f826f91550e9b39 (diff)
Assemble: allow to assemble container with uuid=0:0:0:0
When there are any arrays in config file the spares with domain not matching any array are not assembled because auto assembly is not attempted. Addition of ARRAY line with uuid=0:0:0:0 in config will work with modified condition for gathering spares. 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 532335e7..36fd4b7a 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -564,7 +564,10 @@ int Assemble(struct supertype *st, char *mddev,
}
/* Check if we found some imsm spares but no members */
- if (auto_assem && (!st || !st->sb))
+ if ((auto_assem ||
+ (ident->uuid_set &&
+ memcmp(uuid_zero, ident->uuid,sizeof(uuid_zero)) == 0)) &&
+ (!st || !st->sb))
for (tmpdev = devlist; tmpdev; tmpdev = tmpdev->next) {
if (tmpdev->used != 3)
continue;