Use one function chosing spares from container
authorAnna Czarnowska <anna.czarnowska@intel.com>
Wed, 5 Jan 2011 03:34:14 +0000 (14:34 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 5 Jan 2011 03:34:14 +0000 (14:34 +1100)
commit326727d9c985b8f58fd53d6efcc4bd6e1721bfb5
tree8e39e3946869d8f75b9772115714c1c0a84a1109
parented7fc6b4d91a5342886ba6fe6d175f69f0875d3b
Use one function chosing spares from container

container_chose_spares in Monitor.c and
get_spares_for_grow in super-intel.c
do the same thing: search for spares in a container.

Another version will also be needed for Incremental
so a more general solution is presented here and
applied in two previous contexts.

Normally domlist==NULL would lead an empty list but
this is typically checked earlier so here it is interpreted
as "do not test domains".

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c
mdadm.h
super-intel.c
util.c