Solaris disk drivers need to support a minimum set of ioctl commands specific to Solaris disk drivers. These I/O controls are specified in the dkio(7) manual page. Disk I/O controls transfer disk information to or from the device driver. A Solaris disk device is one that is supported by disk utility commands such as format(1M) and newfs(1M). Table 11-1 lists the mandatory Sun disk I/O controls.
Table 11-1 Mandatory Solaris Disk ioctls|
ioctl |
Description |
|---|---|
|
DKIOCINFO |
Returns information describing the disk controller |
|
DKIOCGAPART |
Returns a disk's partition map |
|
DKIOCSAPART |
Sets a disk's partition map |
|
DKIOCGGEOM |
Returns a disk's geometry |
|
DKIOCSGEOM |
Sets a disk's geometry |
|
DKIOCGVTOC |
Returns a disk's Volume Table of Contents |
|
DKIOCSVTOC |
Sets a disk's Volume Table of Contents |