Re: [PATCH] util: replace ioctl use with function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

Acked-by: Coly Li <colyli@xxxxxxx>


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;





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux