]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Query: Use sysfs to obtain data if possible
authorJes Sorensen <jsorensen@fb.com>
Thu, 13 Apr 2017 16:20:46 +0000 (12:20 -0400)
committerJes Sorensen <jsorensen@fb.com>
Thu, 13 Apr 2017 16:20:46 +0000 (12:20 -0400)
commitf22d6cde7c7e4be38230ac4c51c3af850ed1614e
treedc40b3ce86e7f53636b77b9125f95c5e507d1f94
parent8d0cd09d73a9a9d57ee73b7a79114e881dad1507
Query: Use sysfs to obtain data if possible

Use sysfs to obtain leve, raid_disks, and spare_disks. If sysfs fails,
fall back to calling the ioctl via md_get_array_info().

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Query.c