Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 Add DIOCGDISKINFO compat.



details:   https://anonhg.NetBSD.org/src/rev/7c178cfa15bc
branches:  trunk
changeset: 378481:7c178cfa15bc
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Apr 14 16:26:23 2021 +0000

description:
Add DIOCGDISKINFO compat.

diffstat:

 sys/compat/netbsd32/netbsd32_ioctl.c |  6 ++++--
 sys/compat/netbsd32/netbsd32_ioctl.h |  3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r c6b71a5d8af2 -r 7c178cfa15bc sys/compat/netbsd32/netbsd32_ioctl.c
--- a/sys/compat/netbsd32/netbsd32_ioctl.c      Wed Apr 14 16:12:26 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.c      Wed Apr 14 16:26:23 2021 +0000
@@ -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 <sys/cdefs.h>
-__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 -r c6b71a5d8af2 -r 7c178cfa15bc sys/compat/netbsd32/netbsd32_ioctl.h
--- a/sys/compat/netbsd32/netbsd32_ioctl.h      Wed Apr 14 16:12:26 2021 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.h      Wed Apr 14 16:26:23 2021 +0000
@@ -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 <dev/lockstat.h> */
 struct netbsd32_lsenable {



Home | Main Index | Thread Index | Old Index