IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES IOCTL (ntddstor.h)

The IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES request is sent to the storage class driver to determine available and used mapping resources on a storage device.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

None.

Input buffer length

None.

Output buffer

The buffer at Irp->AssociatedIrp.SystemBuffer contains a STORAGE_LB_PROVISIONING_MAP_RESOURCES structure.

Output buffer length

Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location of the IRP indicates the size, in bytes, of the buffer, which must be at least sizeof(STORAGE_LB_PROVISIONING_MAP_RESOURCES).

Status block

The Status field can be set to STATUS_SUCCESS, or possibly to STATUS_INVALID_DEVICE_REQUEST, STATUS_BUFFER_TOO_SMALL, STATUS_BUFFER_OVERFLOW, or some other error status.

Remarks

If logical block provisioning is enabled on a LUN, resource mapping counts may be reported from the storage device. Resource mapping information is obtained by using the IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES request. A storage monitoring application can use this IOCTL to query resource mapping conditions before a resource threshold or exhaustion event is logged.

Requirements

Requirement Value
Minimum supported client Available in Windows 8 and later versions of Windows.
Header ntddstor.h (include Ntddstor.h)

See also

STORAGE_LB_PROVISIONING_MAP_RESOURCES