]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Factor out add-disk code
authorNeilBrown <neilb@suse.de>
Thu, 18 Sep 2008 05:13:32 +0000 (15:13 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 18 Sep 2008 05:13:32 +0000 (15:13 +1000)
The variety of approaches to 'add_disk' are factored out into
a separate function, and Incremental mode benefits by being
closer to supporting the assembly of containers.

Also remove the adding-to-array-data-structure out of sysfs_add_disk
and into add_disk.

And add some tests for --incremental mode to make sure we don't break it.

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

No differences found