diff options
author | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-29 14:35:41 -0400 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-29 14:35:41 -0400 |
commit | 9cd39f015558dba82c293a4433b481b921ceec87 (patch) | |
tree | 324f4d170f41b88d9941b06c832638a0ba232950 /Detail.c | |
parent | 6ebf34e6bdd9e952d00ad3c2f12a130bfb68965e (diff) | |
download | mdadm-9cd39f015558dba82c293a4433b481b921ceec87.tar.gz |
util: Introduce md_get_array_info()
Remove most direct ioctl calls for GET_ARRAY_INFO, except for one,
which will be addressed in the next patch.
This is the start of the effort to clean up the use of ioctl calls and
introduce a more structured API, which will use sysfs and fall back to
ioctl for backup.
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -107,7 +107,7 @@ int Detail(char *dev, struct context *c) external = (sra != NULL && sra->array.major_version == -1 && sra->array.minor_version == -2); st = super_by_fd(fd, &subarray); - if (ioctl(fd, GET_ARRAY_INFO, &array) == 0) { + if (md_get_array_info(fd, &array) == 0) { inactive = 0; } else if (errno == ENODEV && sra) { if (sra->array.major_version == -1 && |