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

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