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

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