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


 585           /*
 586            * Used by applications to get partition or slice information
 587            */
 588           struct part_info {
 589               daddr_t    p_start;
 590               int        p_length;
 591           };
 592 
 593      DKIOCEXTPARTINFO
 594 
 595         The argument is a pointer to an extpart_info structure (described
 596         below).  This ioctl gets the driver's notion of the size and extent of
 597         the partition or slice indicated by the file descriptor argument.  On
 598         disks larger than 1TB, this ioctl must be used instead of
 599         DKIOCPARTINFO.
 600 
 601           /*
 602            * Used by applications to get partition or slice information
 603            */
 604           struct extpart_info {
 605               diskkaddr_t      p_start;
 606               diskaddr_t       p_length;
 607           };
 608 
 609      DKIOCSETEXTPART
 610 
 611         This ioctl is used to update the in-memory copy of the logical drive
 612         information maintained by the driver.  The ioctl takes no arguments.
 613         It causes a re-read of the partition information and recreation of
 614         minor nodes if required.  Prior to updating the data structures, the
 615         ioctl ensures that the partitions do not overlap.  Device nodes are
 616         created only for valid partition entries.  If there is any change in
 617         the partition offset, size or ID from the previous read, the partition
 618         is deemed to have been changed and hence the device nodes are
 619         recreated.  Any modification to any of the logical partitions results
 620         in the recreation of all logical device nodes.
 621 
 622 SEE ALSO
 623      addbadsec(1M), fdisk(1M), format(1M), ioctl(2), cmdk(7D), sd(7D),
 624      cdio(7I), fdio(7I), hdio(7I)
 625 
 626 NOTES
 627      Blocksize information provided in DKIOCGMEDIAINFO is the size (in bytes)
 628      of the device's basic unit of operation and can differ from the blocksize
 629      that the Solaris operating environment exports to the user.  Capacity
 630      information provided in the DKIOCGMEDIAINFO are for reference only and
 631      you are advised to use the values returned by DKIOCGGEOM or other
 632      appropriate ioctl(2) for accessing data using the standard interfaces.
 633 
 634      For x86 only: If the DKIOCSMBOOT command is used to modify the Solaris
 635      partitions, the VTOC information should also be set appropriately to
 636      reflect the changes to partition.  Failure to do so leads to unexpected
 637      results when the device is closed and reopened fresh at a later time.
 638      This is because a default VTOC is assumed by driver when a Solaris
 639      partition is changed.  The default VTOC persists until the ioctl
 640      DKIOCSVTOC is called to modify VTOC or the device is closed and reopened.
 641      At that point, the old valid VTOC is read from the disk if it is still
 642      available.
 643 
 644 illumos                        October 23, 2017                        illumos


 585           /*
 586            * Used by applications to get partition or slice information
 587            */
 588           struct part_info {
 589               daddr_t    p_start;
 590               int        p_length;
 591           };
 592 
 593      DKIOCEXTPARTINFO
 594 
 595         The argument is a pointer to an extpart_info structure (described
 596         below).  This ioctl gets the driver's notion of the size and extent of
 597         the partition or slice indicated by the file descriptor argument.  On
 598         disks larger than 1TB, this ioctl must be used instead of
 599         DKIOCPARTINFO.
 600 
 601           /*
 602            * Used by applications to get partition or slice information
 603            */
 604           struct extpart_info {
 605               diskaddr_t       p_start;
 606               diskaddr_t       p_length;
 607           };
 608 
 609      DKIOCSETEXTPART
 610 
 611         This ioctl is used to update the in-memory copy of the logical drive
 612         information maintained by the driver.  The ioctl takes no arguments.
 613         It causes a re-read of the partition information and recreation of
 614         minor nodes if required.  Prior to updating the data structures, the
 615         ioctl ensures that the partitions do not overlap.  Device nodes are
 616         created only for valid partition entries.  If there is any change in
 617         the partition offset, size or ID from the previous read, the partition
 618         is deemed to have been changed and hence the device nodes are
 619         recreated.  Any modification to any of the logical partitions results
 620         in the recreation of all logical device nodes.
 621 
 622 SEE ALSO
 623      addbadsec(1M), fdisk(1M), format(1M), ioctl(2), cmdk(7D), sd(7D),
 624      cdio(7I), fdio(7I), hdio(7I)
 625 
 626 NOTES
 627      Blocksize information provided in DKIOCGMEDIAINFO is the size (in bytes)
 628      of the device's basic unit of operation and can differ from the blocksize
 629      that the Solaris operating environment exports to the user.  Capacity
 630      information provided in the DKIOCGMEDIAINFO are for reference only and
 631      you are advised to use the values returned by DKIOCGGEOM or other
 632      appropriate ioctl(2) for accessing data using the standard interfaces.
 633 
 634      For x86 only: If the DKIOCSMBOOT command is used to modify the Solaris
 635      partitions, the VTOC information should also be set appropriately to
 636      reflect the changes to partition.  Failure to do so leads to unexpected
 637      results when the device is closed and reopened fresh at a later time.
 638      This is because a default VTOC is assumed by driver when a Solaris
 639      partition is changed.  The default VTOC persists until the ioctl
 640      DKIOCSVTOC is called to modify VTOC or the device is closed and reopened.
 641      At that point, the old valid VTOC is read from the disk if it is still
 642      available.
 643 
 644 illumos                        February 17, 2020                       illumos