Site icon EfmSoft

What does HRESULT 0x80042817 (VDS_E_INVALID_SHRINK_SIZE) mean?

 
Previous Next
VDS_E_SHRINK_OVER_DATA VDS_E_LUN_DISK_MISSING

VDS_E_INVALID_SHRINK_SIZE

This is an arithmetic/precondition error on the LUN shrink request. IVdsLun::Shrink accepts the number of bytes to remove, not the desired final size. A caller that computes bytesToRemove from stale capacity or accidentally passes the intended final size can request a reduction larger than the LUN itself.

Why this state matters

The method documentation also says the byte count does not need to be a multiple of the block or sector size; provider alignment behavior is therefore a different issue. This particular HRESULT should first trigger verification of current LUN capacity and the subtraction performed by the caller.

Diagnostic focus

Technical references

IVdsLun::Shrink · IVdsLun · VDS_ASYNC_OUTPUT_TYPE · MS-VDS error codes · VDS common return codes


Looking for a different code? Search another status or error code.

Exit mobile version