diff options
author | Kinga Tanska <kinga.tanska@intel.com> | 2022-06-20 18:10:39 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-06-24 19:56:27 +0200 |
commit | 953cc7e5a485a91ddec7312c7a5d7779749fad5f (patch) | |
tree | 8d83dc599055de0b6ca045095d6d13035f2736ac /util.c | |
parent | Revert "mdadm: fix coredump of mdadm --monitor -r" (diff) | |
download | mdadm-953cc7e5a485a91ddec7312c7a5d7779749fad5f.tar.xz mdadm-953cc7e5a485a91ddec7312c7a5d7779749fad5f.zip |
util: replace ioctl use with function
Replace using of ioctl calling to get md array info with
special function prepared to it.
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -267,7 +267,7 @@ int md_array_active(int fd) * GET_ARRAY_INFO doesn't provide access to the proper state * information, so fallback to a basic check for raid_disks != 0 */ - ret = ioctl(fd, GET_ARRAY_INFO, &array); + ret = md_get_array_info(fd, &array); } return !ret; |