]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Add mdstat_by_component
authorNeilBrown <neilb@suse.de>
Wed, 30 Jun 2010 06:55:17 +0000 (16:55 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 30 Jun 2010 06:55:17 +0000 (16:55 +1000)
commit3b57c4661a8599938cb7c521a9db0a8c59251338
tree5fc8c89c7af2c13e7ba9bd6606151ccbb10d2504
parent7e6140e6c614025aea1d20a8d790a651b7d5b8c4
Add mdstat_by_component

This allows finding the array which contains a given component.
Components are named using the kernel-internal string name such
as "sda1" or "hdb".
Don't return member arrays, only the contain that contains them.

Also tidy up the parsing of 'inactive' arrays in /proc/mdstat.
If we see 'inactive' we need to set 'in_devs' immediately as there
is no level coming.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.h
mdstat.c