From 0e3291df0d7cdf3412269a39a3841d2f51ea2ed5 Mon Sep 17 00:00:00 2001 From: mlelstv Date: Wed, 14 Apr 2021 16:26:23 +0000 Subject: [PATCH] Add DIOCGDISKINFO compat. --- sys/compat/netbsd32/netbsd32_ioctl.c | 6 ++++-- sys/compat/netbsd32/netbsd32_ioctl.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/compat/netbsd32/netbsd32_ioctl.c b/sys/compat/netbsd32/netbsd32_ioctl.c index 56739bc3574d..6bbdba244b18 100644 --- a/sys/compat/netbsd32/netbsd32_ioctl.c +++ b/sys/compat/netbsd32/netbsd32_ioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_ioctl.c,v 1.118 2021/01/17 10:50:01 simonb Exp $ */ +/* $NetBSD: netbsd32_ioctl.c,v 1.119 2021/04/14 16:26:23 mlelstv Exp $ */ /* * Copyright (c) 1998, 2001 Matthew R. Green @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.118 2021/01/17 10:50:01 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.119 2021/04/14 16:26:23 mlelstv Exp $"); #if defined(_KERNEL_OPT) #include "opt_ntp.h" @@ -1693,6 +1693,8 @@ netbsd32_ioctl(struct lwp *l, IOCTL_STRUCT_CONV_TO(DIOCGSTRATEGY, disk_strategy); case DIOCSSTRATEGY32: IOCTL_STRUCT_CONV_TO(DIOCSSTRATEGY, disk_strategy); + case DIOCGDISKINFO32: + IOCTL_STRUCT_CONV_TO(DIOCGDISKINFO, plistref); case DIOCLWEDGES32: IOCTL_STRUCT_CONV_TO(DIOCLWEDGES, dkwedge_list); diff --git a/sys/compat/netbsd32/netbsd32_ioctl.h b/sys/compat/netbsd32/netbsd32_ioctl.h index 60f28ad2242c..c46bb80f7b39 100644 --- a/sys/compat/netbsd32/netbsd32_ioctl.h +++ b/sys/compat/netbsd32/netbsd32_ioctl.h @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_ioctl.h,v 1.77 2021/01/17 10:50:01 simonb Exp $ */ +/* $NetBSD: netbsd32_ioctl.h,v 1.78 2021/04/14 16:26:23 mlelstv Exp $ */ /* * Copyright (c) 1998, 2001 Matthew R. Green @@ -672,6 +672,7 @@ struct netbsd32_disk_strategy { #define DIOCGSTRATEGY32 _IOR('d', 125, struct netbsd32_disk_strategy) #define DIOCSSTRATEGY32 _IOW('d', 126, struct netbsd32_disk_strategy) +#define DIOCGDISKINFO32 _IOR('d', 127, struct netbsd32_plistref) /* from */ struct netbsd32_lsenable {