util: Introduce md_get_disk_info()
authorJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 29 Mar 2017 19:23:50 +0000 (15:23 -0400)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 29 Mar 2017 19:23:50 +0000 (15:23 -0400)
commitd97572f5a59ca1ddde9971a79d47c9ea4db5891b
treef748c4137dc291624599a7927c57310efe794584
parent5b13d2e1fb8abecddd4e28e67facac5d7ef2cef3
util: Introduce md_get_disk_info()

This removes all the inline ioctl calls for GET_DISK_INFO, allowing us
to switch to sysfs in one place, and improves type checking.

Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Detail.c
Grow.c
Manage.c
Monitor.c
Query.c
mdadm.h
util.c