]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: choose spare correctly for external metadata.
authorNeilBrown <neilb@suse.de>
Thu, 25 Nov 2010 07:58:27 +0000 (18:58 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 25 Nov 2010 07:58:27 +0000 (18:58 +1100)
commit5739e0d007a3eea80f5108d73d444751dbbde1ef
treeb436fa7134053e0edcc0999f5f86f89a9fed1fb8
parent0fa21e85227ed207881f7636a00223c2397b0a37
Monitor: choose spare correctly for external metadata.

When metadata is managed externally - probably as a container - we
need to examine that metadata to see which devices are spares.

So use the getinfo_super_disk message and use the info returned.

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