]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: simplify device searches in Manage_subdevs
authorNeilBrown <neilb@suse.de>
Mon, 9 Jul 2012 07:22:16 +0000 (17:22 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 9 Jul 2012 07:22:16 +0000 (17:22 +1000)
commit1d9976430cfadcc13052f603915621659f09e936
tree65a4f8b607f5a73de5dd7f545c75df1c53361089
parent50f01ba5a1b5a006937d02864d03261eedaf5a9e
Manage: simplify device searches in Manage_subdevs

We currently have rather hard-to-follow loop to iterate
through all the matches for 'missing' or 'faulty' or 'detached'.

Simplify it by creating a list of possible devices for each
of those and splicing the new list into the device list.

This removes the need for 'jnext' and 'next' and various other hacks.

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