]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Change displaying of devices in --detail
authorAnna Sztukowska <anna.sztukowska@intel.com>
Wed, 28 Aug 2024 10:04:35 +0000 (12:04 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 30 Aug 2024 09:15:06 +0000 (11:15 +0200)
commitbd5511c792ecc73de8897fbd8713e8c6eaf3e835
treea92a8c4245bad271815d3ea4a977c1ddc8a2020a
parenta6392b419f38a0144a03df90371d6890540a55cf
mdadm: Change displaying of devices in --detail

The counts of active, working, failed and spare devices were not
printed when the number was zero.

Refactor the code to always display the counts of all device types,
regardless of their number. This way, it is more reliable for users.

Signed-off-by: Anna Sztukowska <anna.sztukowska@intel.com>
Detail.c