Print this page
12315 errors in section 7i of the manual


   2 .\" The contents of this file are subject to the terms of the
   3 .\" Common Development and Distribution License (the "License").
   4 .\" You may not use this file except in compliance with the License.
   5 .\"
   6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   7 .\" or http://www.opensolaris.org/os/licensing.
   8 .\" See the License for the specific language governing permissions
   9 .\" and limitations under the License.
  10 .\"
  11 .\" When distributing Covered Code, include this CDDL HEADER in each
  12 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  13 .\" If applicable, add the following below this CDDL HEADER, with the
  14 .\" fields enclosed by brackets "[]" replaced with your own identifying
  15 .\" information: Portions Copyright [yyyy] [name of copyright owner]
  16 .\"
  17 .\"
  18 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
  19 .\" Copyright 2016 Nexenta Systems, Inc.
  20 .\" Copyright (c) 2017, Joyent, Inc.
  21 .\"
  22 .Dd October 23, 2017
  23 .Dt DKIO 7I
  24 .Os
  25 .Sh NAME
  26 .Nm dkio
  27 .Nd disk control operations
  28 .Sh SYNOPSIS
  29 .In sys/dkio.h
  30 .In sys/vtoc.h
  31 .Sh DESCRIPTION
  32 Disk drivers support a set of
  33 .Xr ioctl 2
  34 requests for disk controller, geometry, and partition information.
  35 Basic to these
  36 .Xr ioctl 2
  37 requests are the definitions in
  38 .In sys/dkio.h .
  39 .Sh IOCTLS
  40 The following
  41 .Xr ioctl 2
  42 requests set and/or retrieve the current disk


 792  */
 793 struct part_info {
 794     daddr_t    p_start;
 795     int        p_length;
 796 };
 797 .Ed
 798 .It Dv DKIOCEXTPARTINFO
 799 .Pp
 800 The argument is a pointer to an
 801 .Vt extpart_info
 802 structure (described below).
 803 This ioctl gets the driver's notion of the size and extent of the partition or
 804 slice indicated by the file descriptor argument.
 805 On disks larger than 1TB, this ioctl must be used instead of
 806 .Dv DKIOCPARTINFO .
 807 .Bd -literal -offset 2n
 808 /*
 809  * Used by applications to get partition or slice information
 810  */
 811 struct extpart_info {
 812     diskkaddr_t      p_start;
 813     diskaddr_t       p_length;
 814 };
 815 .Ed
 816 .It Dv DKIOCSETEXTPART
 817 .Pp
 818 This ioctl is used to update the in-memory copy of the logical drive
 819 information maintained by the driver.
 820 The ioctl takes no arguments.
 821 It causes a re-read of the partition information and recreation of minor nodes
 822 if required.
 823 Prior to updating the data structures, the ioctl ensures that the partitions do
 824 not overlap.
 825 Device nodes are created only for valid partition entries.
 826 If there is any change in the partition offset, size or ID from the previous
 827 read, the partition is deemed to have been changed and hence the device nodes
 828 are recreated.
 829 Any modification to any of the logical partitions results in the
 830 recreation of all logical device nodes.
 831 .El
 832 .Sh SEE ALSO




   2 .\" The contents of this file are subject to the terms of the
   3 .\" Common Development and Distribution License (the "License").
   4 .\" You may not use this file except in compliance with the License.
   5 .\"
   6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   7 .\" or http://www.opensolaris.org/os/licensing.
   8 .\" See the License for the specific language governing permissions
   9 .\" and limitations under the License.
  10 .\"
  11 .\" When distributing Covered Code, include this CDDL HEADER in each
  12 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  13 .\" If applicable, add the following below this CDDL HEADER, with the
  14 .\" fields enclosed by brackets "[]" replaced with your own identifying
  15 .\" information: Portions Copyright [yyyy] [name of copyright owner]
  16 .\"
  17 .\"
  18 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
  19 .\" Copyright 2016 Nexenta Systems, Inc.
  20 .\" Copyright (c) 2017, Joyent, Inc.
  21 .\"
  22 .Dd February 17, 2020
  23 .Dt DKIO 7I
  24 .Os
  25 .Sh NAME
  26 .Nm dkio
  27 .Nd disk control operations
  28 .Sh SYNOPSIS
  29 .In sys/dkio.h
  30 .In sys/vtoc.h
  31 .Sh DESCRIPTION
  32 Disk drivers support a set of
  33 .Xr ioctl 2
  34 requests for disk controller, geometry, and partition information.
  35 Basic to these
  36 .Xr ioctl 2
  37 requests are the definitions in
  38 .In sys/dkio.h .
  39 .Sh IOCTLS
  40 The following
  41 .Xr ioctl 2
  42 requests set and/or retrieve the current disk


 792  */
 793 struct part_info {
 794     daddr_t    p_start;
 795     int        p_length;
 796 };
 797 .Ed
 798 .It Dv DKIOCEXTPARTINFO
 799 .Pp
 800 The argument is a pointer to an
 801 .Vt extpart_info
 802 structure (described below).
 803 This ioctl gets the driver's notion of the size and extent of the partition or
 804 slice indicated by the file descriptor argument.
 805 On disks larger than 1TB, this ioctl must be used instead of
 806 .Dv DKIOCPARTINFO .
 807 .Bd -literal -offset 2n
 808 /*
 809  * Used by applications to get partition or slice information
 810  */
 811 struct extpart_info {
 812     diskaddr_t       p_start;
 813     diskaddr_t       p_length;
 814 };
 815 .Ed
 816 .It Dv DKIOCSETEXTPART
 817 .Pp
 818 This ioctl is used to update the in-memory copy of the logical drive
 819 information maintained by the driver.
 820 The ioctl takes no arguments.
 821 It causes a re-read of the partition information and recreation of minor nodes
 822 if required.
 823 Prior to updating the data structures, the ioctl ensures that the partitions do
 824 not overlap.
 825 Device nodes are created only for valid partition entries.
 826 If there is any change in the partition offset, size or ID from the previous
 827 read, the partition is deemed to have been changed and hence the device nodes
 828 are recreated.
 829 Any modification to any of the logical partitions results in the
 830 recreation of all logical device nodes.
 831 .El
 832 .Sh SEE ALSO