]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Monitor: Include containers in spare migration
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Wed, 16 Aug 2017 12:59:46 +0000 (14:59 +0200)
committerJes Sorensen <jsorensen@fb.com>
Wed, 16 Aug 2017 13:05:59 +0000 (09:05 -0400)
commit2dab69c9e3acace828bbb6a00514fa820f8ca64f
tree99cec08325cb4eec072b834b43534c22bd3b0b26
parent802961a2396d342b7bb3d548d412be26acbd7fa8
Monitor: Include containers in spare migration

Spare migration doesn't work for external metadata. mdadm skips
a container with spare device because it is inactive. It used to work
because GET_ARRAY_INFO ioctl returned valid structure for a container
and mdadm treated such response as active container. Current
implementation checks it in sysfs where container is shown as inactive.

Adapt sysfs implementation to work the same way as ioctl.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Monitor.c