]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Add mdstat_by_component
authorNeilBrown <neilb@suse.de>
Thu, 8 Apr 2010 21:25:07 +0000 (07:25 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 8 Apr 2010 21:25:07 +0000 (07:25 +1000)
commitc81c0cab6ea8ee5fd0eccefba9e64a77ad18df30
tree0a49101fe8bd18f4199340cf05b0804fd6051610
parent94fcb80a8e0c6311636b2ee689a6ac5b7125afe6
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