]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Detail.c
Detail: differentiate between container and inactive arrays
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Fri, 18 Aug 2017 10:00:23 +0000 (12:00 +0200)
committerJes Sorensen <jsorensen@fb.com>
Wed, 23 Aug 2017 17:42:54 +0000 (13:42 -0400)
commitbb8354598676428af01f23bfb1876c7356d61147
tree1e937421047752719156581ddf52934ca4f3e460
parent2dab69c9e3acace828bbb6a00514fa820f8ca64f
Detail: differentiate between container and inactive arrays

Containers used to be handled as active arrays because GET_ARRAY_INFO
ioctl returns valid structure for them. As containers appear as inactive
in sysfs, the output for detail command has changed.

Stop relying on inactive state for containers. Make the output look the
same as in mdadm 4.0.

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