// ntddstor.h
// CTL_CODE(0x002d, 0x502, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES 0x002D5408
View the official Windows Driver Kit DDI referenceNo description available.
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.
None.
None.
The buffer at Irp->AssociatedIrp.SystemBuffer contains a STORAGE_LB_PROVISIONING_MAP_RESOURCES structure.
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).
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.
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.
STORAGE_LB_PROVISIONING_MAP_RESOURCES