]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble: allow to assemble spares on their own
authorAnna Czarnowska <anna.czarnowska@intel.com>
Wed, 5 Jan 2011 02:54:18 +0000 (13:54 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 5 Jan 2011 02:54:18 +0000 (13:54 +1100)
commited7fc6b4d91a5342886ba6fe6d175f69f0875d3b
tree84c6f4c822fd17ba4997ae3cfc0ad3b2bbf8843a
parent26b05aeaede6fbdf92807324ab94f9c15c1cc2c5
Assemble: allow to assemble spares on their own

If we find spares but no members of given array
we create container with just spares.

This allows auto assemble to pick up all lose imsm spares when there
is no config file.
When there is a valid config file and any array is assembled from it
we don't try auto assembly so we will not assemble spares that don't
match any array.
To remedy this we must add
ARRAY metadata=imsm UUID=00000000:00000000:00000000:00000000
to config file.
This container will include all remaining spares.

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c