]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: add disks chosen by metadata handler to array for growth.
authorNeilBrown <neilb@suse.de>
Wed, 15 Dec 2010 22:07:52 +0000 (09:07 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 15 Dec 2010 22:07:52 +0000 (09:07 +1100)
commitb5420ef325eb2d80da9002a5805d6161f551dc0c
tree1418f8dcb715fa0f887b1a3a1f454a20d86d6afb
parent4347544720e154698dac981292be4d9fea4148ee
Grow: add disks chosen by metadata handler to array for growth.

With externally managed container based metadata, the ->reshape_super
method must choose any spares that are to be added to the array.
They should be prepared so that ->container_content will find them
as spares (disk.state == 0) which are assigned to a slot
(raid_disk >= 0).
We need to take those and add them to the array(s).

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c