From: Kinga Tanska Date: Mon, 20 Jun 2022 16:10:39 +0000 (+0800) Subject: util: replace ioctl use with function X-Git-Tag: mdadm-4.3~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953cc7e5a485a91ddec7312c7a5d7779749fad5f;p=thirdparty%2Fmdadm.git 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 Acked-by: Coly Li Signed-off-by: Jes Sorensen --- diff --git a/util.c b/util.c index cc94f96e..38f0420e 100644 --- a/util.c +++ b/util.c @@ -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;