Blame SOURCES/0021-util-replace-ioctl-use-with-function.patch

fdf7c0
From 953cc7e5a485a91ddec7312c7a5d7779749fad5f Mon Sep 17 00:00:00 2001
fdf7c0
From: Kinga Tanska <kinga.tanska@intel.com>
fdf7c0
Date: Tue, 21 Jun 2022 00:10:39 +0800
fdf7c0
Subject: [PATCH 21/52] util: replace ioctl use with function
fdf7c0
fdf7c0
Replace using of ioctl calling to get md array info with
fdf7c0
special function prepared to it.
fdf7c0
fdf7c0
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
fdf7c0
Acked-by: Coly Li <colyli@suse.de>
fdf7c0
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
fdf7c0
---
fdf7c0
 util.c | 2 +-
fdf7c0
 1 file changed, 1 insertion(+), 1 deletion(-)
fdf7c0
fdf7c0
diff --git a/util.c b/util.c
fdf7c0
index cc94f96e..38f0420e 100644
fdf7c0
--- a/util.c
fdf7c0
+++ b/util.c
fdf7c0
@@ -267,7 +267,7 @@ int md_array_active(int fd)
fdf7c0
 		 * GET_ARRAY_INFO doesn't provide access to the proper state
fdf7c0
 		 * information, so fallback to a basic check for raid_disks != 0
fdf7c0
 		 */
fdf7c0
-		ret = ioctl(fd, GET_ARRAY_INFO, &array);
fdf7c0
+		ret = md_get_array_info(fd, &array);
fdf7c0
 	}
fdf7c0
 
fdf7c0
 	return !ret;
fdf7c0
-- 
fdf7c0
2.31.1
fdf7c0