All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] util: replace ioctl use with function
@ 2022-04-04 12:45 Kinga Tanska
  2022-04-06 15:12 ` Coly Li
  0 siblings, 1 reply; 2+ messages in thread
From: Kinga Tanska @ 2022-04-04 12:45 UTC (permalink / raw)
  To: linux-raid; +Cc: jes, colyli

Replace using of ioctl calling to get md array info with
special function prepared to it.

Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
---
 util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c
index cdf1da24..003b2f86 100644
--- a/util.c
+++ b/util.c
@@ -268,7 +268,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;
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] util: replace ioctl use with function
  2022-04-04 12:45 [PATCH] util: replace ioctl use with function Kinga Tanska
@ 2022-04-06 15:12 ` Coly Li
  0 siblings, 0 replies; 2+ messages in thread
From: Coly Li @ 2022-04-06 15:12 UTC (permalink / raw)
  To: Kinga Tanska; +Cc: jes, linux-raid

On 4/4/22 8:45 PM, Kinga Tanska wrote:
> Replace using of ioctl calling to get md array info with
> special function prepared to it.
>
> Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>

Acked-by: Coly Li <colyli@suse.de>


Thanks.


Coly Li


> ---
>   util.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/util.c b/util.c
> index cdf1da24..003b2f86 100644
> --- a/util.c
> +++ b/util.c
> @@ -268,7 +268,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;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-06 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:45 [PATCH] util: replace ioctl use with function Kinga Tanska
2022-04-06 15:12 ` Coly Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.