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

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