The IOCC_GEOMETRY CommandCode consists of all the CommandModifiers responsible for setting and returning information about the capacity of a unit.

The CommandModifiers are described in the following table:

┌──────────────────────────────┬──────────────────────────────┐
│CommandModifier               │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_GET_MEDIA_GEOMETRY       │Returns the geometry of the   │
│                              │current media in a drive.     │
│                              │For non-removable media       │
│                              │devices, the geometry returned│
│                              │must be identical to the      │
│                              │geometry returned by          │
│                              │IOCM_GET_DEVICE_GEOMETRY.     │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_SET_MEDIA_GEOMETRY       │Informs the adapter device    │
│                              │driver of the required media  │
│                              │geometry in preparation for   │
│                              │formatting.  This command is  │
│                              │mandatory only for standard   │
│                              │diskette media.               │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_GET_DEVICE_GEOMETRY      │Returns the device geometry   │
│                              │compatible with INT 13h BIOS  │
│                              │function 08h.                 │
│                              │If the INT 13h support for a  │
│                              │device provides translation,  │
│                              │the INT 13h geometry of the   │
│                              │device must be returned with  │
│                              │the BIOS translation performed│
│                              │within the driver.  That is,  │
│                              │the driver must emulate any   │
│                              │INT 13h translation performed │
│                              │by BIOS.                      │
├──────────────────────────────┼──────────────────────────────┤
│IOCM_SET_LOGICAL_GEOMETRY     │Indicates that the geometry   │
│                              │recorded in the file system   │
│                              │tables on the media does not  │
│                              │match the physical media      │
│                              │geometry reported by the      │
│                              │device driver.                │
│                              │The driver should convert RBA │
│                              │to CHS addresses according to │
│                              │the geometry passed in this   │
│                              │IORB, rather than using the   │
│                              │media geometry the driver is  │
│                              │reporting.  The device driver │
│                              │should stop performing this   │
│                              │translation if a media change │
│                              │indication is detected.       │
│                              │Support of this command is    │
│                              │mandatory only for standard   │
│                              │diskette media.               │
└──────────────────────────────┴──────────────────────────────┘

Remarks